Solved

How to launch netscape/mozilla browser at specified URL from perl script

Posted on 2008-06-23
9
661 Views
Last Modified: 2010-04-21
Need to launch oracle web application from a perl script in a unix environment.  How do I invoke browser (e.g. netscape or mozilla) at my specific URL.  Example:  system("/usr/sfw/bin/mozilla <URL Location>&")?  
0
Comment
Question by:sdruss
  • 6
  • 2
9 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 500 total points
ID: 21852455
Your example has it.  It worked when I tested with firefox.

system("/usr/bin/firefox http://www.google.com&");

Open in new window

0
 
LVL 1

Author Comment

by:sdruss
ID: 21862182
Great!  Also, how would I pass a username, password to this URL?  Thanks
0
 
LVL 1

Author Comment

by:sdruss
ID: 21862195
When URL is displayed there is a prompt for username/password.  How would I pass this info while invoking the browswer at this URL?
0
 
LVL 39

Expert Comment

by:Adam314
ID: 21865901
system("/usr/bin/firefox http://user\@pass:www.google.com&");
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 1

Author Comment

by:sdruss
ID: 21870743
Thanks, great solution.
0
 
LVL 1

Author Comment

by:sdruss
ID: 21894383
Great help; however still working to add user/password to URL.  Thanks
0
 
LVL 1

Author Comment

by:sdruss
ID: 21894388
Great, thanks!
0
 
LVL 1

Author Closing Comment

by:sdruss
ID: 31470035
Yes, this did work for me
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now