I would like to be able to do the following (and it should work on Windows):
- Run an external command / process
- Capture all its stdout and stderr (if any)
- Do this asynchronously (Script must not wait for process to terminate.)
- "Monitor": When the process terminates, know its exit code
- "Monitor": If the process doesn't terminate (timeout), being able to terminate said process.
- I specifically do not need to send anything to this process via stdin
I have to say, I got completely lost between all the stuff under IPC::
... Open3
, Run
, Cmd
.. oh my ... adding in Capture::Tiny
etc. and the caveats mentioned for Win32.
What modules from the Perl "toolbox" are recommended for above? Strawberry Perl 5.14 and up. Any additional CPAN module is OK.