XP is just a number | |
PerlMonks |
Re: Proc::Background does not take file path with spacesby BrowserUk (Patriarch) |
on Apr 27, 2012 at 10:48 UTC ( [id://967583]=note: print w/replies, xml ) | Need Help?? |
Looking inside the Win32 component of Proc::Background it does some pretty dubious manipulations with the program component of its arg(s), including if, -- after it has done some other incomprehensible manipulations -- the length of the command argument is 0, then it wraps that zero length arg in quotes:
None of which bodes well for success. If all you need is to start a process in the background, a simple:
Does the job. if( kill $pid, 0 ) { ... will tell you if it is still running. kill $pid, 3; will terminate it. waitpid $pid,0; my $retcode = $?; will get the return code. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|