Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Launching an .exe file from Perl

by Shoeboy (Sexton)
on Jul 07, 2000 at 22:33 UTC ( #21550=note: print w/replies, xml ) Need Help??


in reply to Launching an .exe file from Perl

Ok, the other monks handled this pretty comprehensively, but you need to be careful about interactive console mode apps and some (very few, but I've seen it on ancient 16 bit crap) windows apps - system() won't return until they exit. If you do this:
system("isql /Speterj /Usa /Pas_if"); system("isql /Speterj_build /Usa /Pas_if");
You'll get one instance of isql.exe instead of 2. The second instance won't start up until the first one exits. What you need to do is this:
system("start isql /Speterj /Usa /Pas_if"); system("start isql /Speterj_build /Usa /Pas_if");
For most Win32 Gui apps, system() returns as soon as the program is launched. --Shoeboy
perl -e "do {kill $java, $ada, $cobol, $pascal, $csh;} until die 'Just another perl hacker';"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://21550]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2019-09-23 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (279 votes). Check out past polls.

    Notices?