Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-23
9
Medium Priority
?
675 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
8 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
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…
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 +…

824 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