Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Using Proc::Background and Win32

by dasgar (Deacon)
on Oct 18, 2013 at 18:03 UTC ( #1058789=note: print w/ replies, xml ) Need Help??


in reply to Using Proc::Background and Win32

My suspicion is that running the script in the command prompt as well as running in system() is able to leverage the file association that you have configured in Windows -- meaning all .pl files are to be "opened" with perl.exe. And that Proc::Background is not pickup (or using) that file association.

Indeed, looking at Proc::Background's method section of its documentation seems to address the very issue that you are hitting. Basically, the new method is expecting the name (preferably the full path) of an executable to run. In your case, the executable that you are trying to run is perl.exe. However, based on how you are calling the new method, Proc::Background is trying to find an executable named "bg_script.pl.exe", which it can't find.


Comment on Re: Using Proc::Background and Win32
Re^2: Using Proc::Background and Win32
by mmartin (Monk) on Oct 18, 2013 at 18:56 UTC
    Hey dasgar, thanks for the reply!

    Humm... Ok sorry, I do see that now in the documentation, thanks.

    Yea, I guess maybe I'll try BrowserUK's suggestion and see if that works... His reply is one below
    yours in the list.

    Thanks Again,
    Matt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-07-28 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls