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

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>&")?  
LVL 1
sdrussAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Adam314Connect With a Mentor Commented:
Your example has it.  It worked when I tested with firefox.

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

Open in new window

0
 
sdrussAuthor Commented:
Great!  Also, how would I pass a username, password to this URL?  Thanks
0
 
sdrussAuthor Commented:
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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Adam314Commented:
system("/usr/bin/firefox http://user\@pass:www.google.com&");
0
 
sdrussAuthor Commented:
Thanks, great solution.
0
 
sdrussAuthor Commented:
Great help; however still working to add user/password to URL.  Thanks
0
 
sdrussAuthor Commented:
Great, thanks!
0
 
sdrussAuthor Commented:
Yes, this did work for me
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.