in reply to Re^2: Using Proc::Background and Win32
in thread Using Proc::Background and Win32

It was worth a try.

BTW: Have you read this in the docs?

For Win32 operating systems:
The Win32::Process module is always used to spawn background processes on the Win32 platform. This module always takes a single string argument containing the executable's name and any option arguments. In addition, it requires that the absolute path to the executable is also passed to it. If only a single argument is passed to new, then it is split on whitespace into an array and the first element of the split array is used at the executable's name. If multiple arguments are passed to new, then the first element is used as the executable's name. If the executable's name is an absolute path, then new checks to see if the executable exists in the given location or fails otherwise. If the executable's name is not absolute, then the executable is searched for using the PATH environmental variable. The input executable name is always replaced with the absolute path determined by this process. In addition, when searching for the executable, the executable is searched for using the unchanged executable name and if that is not found, then it is checked by appending `.exe' to the name in case the name was passed without the `.exe' suffix. Finally, the argument array is placed back into a single string and passed to Win32::Process::Create.</i></blockquote>

Personally, I think the sheer number of generic background process starters on cpan is a string indication that their goal is a flawed concept. I've tried many of them and haven't fond one that works as well as a simple:

if( $^O =~ 'mswin' ) { my $pid = system 1, $command; } else { ##whatever is appropriate on *nix. }

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.

Replies are listed 'Best First'.
Re^4: Using Proc::Background and Win32
by mmartin (Monk) on Oct 18, 2013 at 19:44 UTC
    Hey BrowserUK, thanks AGAIN for the reply!

    Yea, I did see that... See my most recent comment that I must have been writing as you
    were writing yours.


    I'm definitely NOT married to the Proc::Background way, so as long as I can execute this
    script in the background and also have the ability to check if it's still running or not, then
    that's fine by me...


    Thanks Again,
    Matt