Solved

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

Posted on 2008-06-23
9
671 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 39

Expert Comment

by:Adam314
ID: 21865901
system("/usr/bin/firefox http://user\@pass:www.google.com&");
0
 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

734 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