in reply to various questions about Win32::Process

Try system_detached

that is launch a detached process in the background with a new shell, have that process be a perl program that spawn whatever you're really spawning , capture STDIN/STDERR/... IPC::Run3/Capture:: Tiny... save wherever you want to save, and exit with the true programs exit value

if it takes too long kill it

Then get data from cache or tempfiles, perform any cleanup ... whatever

  • Comment on Re: various questions about Win32::Process ( system_detached Capture::Tiny )

Replies are listed 'Best First'.
Re^2: various questions about Win32::Process ( system_detached Capture::Tiny )
by nabbo (Novice) on Jan 13, 2014 at 13:18 UTC

    I'm not very comfortable having a perl process spawning another perl process launching a command.
    Moreover, it does not solve all my problems (I'm not even sure it does solve any ?)

      Moreover, it does not solve all my problems (I'm not even sure it does solve any ?)

      So you tried it?