Solved

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

Posted on 2008-06-23
9
664 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Does ajax call keeps an open connection to the server 2 62
URL for downloading Google Chrome for Win XP 2 118
Web Browsers Start Page Hijacker 14 106
Browser annoying behavior 18 48
I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

930 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

15 Experts available now in Live!

Get 1:1 Help Now