Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

run IE from the Perl script

by Misha (Acolyte)
on Jan 30, 2008 at 20:24 UTC ( #665203=perlquestion: print w/ replies, xml ) Need Help??
Misha has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

I need to run IE from the Perl script and pass the port as an argument.
How can I do it?

Many thanks

Replies are listed 'Best First'.
Re: run IE from the Perl script
by Errto (Vicar) on Jan 30, 2008 at 20:51 UTC
    See Re: How to start default browser on Windows?. Note that this opens the user's default browser, rather than IE necessarily, but I suspect most of your users would consider that a good thing. system works too, but IIRC it pops up a console window (unless you're already in one), which may be unseemly.
      Many thanks,
      It what I was looking for.
Re: run IE from the Perl script
by nikosv (Chaplain) on Jan 30, 2008 at 20:47 UTC
Re: run IE from the Perl script
by Popcorn Dave (Abbot) on Jan 30, 2008 at 20:37 UTC
    I'm not sure that this is the most efficient way to do it, but this seems to work.

    use strict; system (1,'start http://www.msn.com:8080');

    I tested it and it opened a new tab for me in Firefox, but that's my default browser, so if IE is your default, it should be fine.

    HTH!


    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

    I would love to change the world, but they won't give me the source code

Re: run IE from the Perl script
by renodino (Curate) on Jan 30, 2008 at 20:58 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://665203]
Approved by Popcorn Dave
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2016-06-27 04:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (335 votes). Check out past polls.