Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

run IE from the Perl script

by Misha (Acolyte)
on Jan 30, 2008 at 20:24 UTC ( [id://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 (Deacon) on Jan 30, 2008 at 20:47 UTC
Re: run IE from the Perl script
by renodino (Curate) on Jan 30, 2008 at 20:58 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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found