Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Launching multiple programs from Perl script

by Shawrich (Initiate)
on Nov 06, 2012 at 16:38 UTC ( #1002518=note: print w/ replies, xml ) Need Help??


in reply to Re: Launching multiple programs from Perl script
in thread Launching multiple programs from Perl script

I tested this but found the code stopped after the first exec statement. Here is the portion of my code I'm working with.

foreach ( keys %bridges ) { if ( $bridges{$_} ) { my $cmdStr = "\"C:\\Some Path\\$_\\Some File.exe\""; exec($cmdStr) if fork; } }


Comment on Re^2: Launching multiple programs from Perl script
Download Code
Replies are listed 'Best First'.
Re^3: Launching multiple programs from Perl script
by mbethke (Hermit) on Nov 06, 2012 at 17:16 UTC
    You mean the exec never returned? Strange. fork/exec emulation is not exactly straightforward on Windows but it shouldn't be that broken. Works fine here on Linux. Are you sure it's not how %bridges is set up?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2016-02-14 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (470 votes), past polls