I've had some good experiences with IPC::Run3 -- it aims for speed, simplicity and portability. Its docs have some comparisons to other alternatives, such as IPC::Open3 etc. It doesn't have a timeout, but I think your alarm code might work.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In reply to Re: Safe cross-platform command execution and capture of STDOUT & STDERR
by xdg
in thread Safe cross-platform command execution and capture of STDOUT & STDERR
by mattski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |