Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Using Proc::Background and Win32

by dasgar (Priest)
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 "", which it can't find.

Replies are listed 'Best First'.
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,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1058789]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2018-04-20 04:17 GMT
Find Nodes?
    Voting Booth?