Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Launching multiple programs from Perl script

by Shawrich (Initiate)
on Nov 06, 2012 at 16:45 UTC ( #1002520=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

Proc::Background does not appear to like spaces in the file name. However, I found another post on this and it resolved my issue with the spaces. Re: Proc::Background does not take file path with spaces

And here's the final, working code example for anyone else who comes along.
foreach ( keys %bridges ) { if ( $bridges{$_} ) { my $cmdStr = Win32::GetShortPathName("C:\\Some Path\\$_\\Some +File.exe"); my $proc1 = Proc::Background->new($cmdStr); } }


Comment on Re^2: Launching multiple programs from Perl script
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (15)
As of 2015-07-28 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls