http://www.perlmonks.org?node_id=683030


in reply to How to optionally kill a child, and capture status if not killed.

You might have a look at IPC::Run as I believe it's the wheel you're trying to reinvent. Can't blame you for that, as CPAN is large and difficult to digest.