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


in reply to Using IPC::Run to kill stuck process

I agree with runrig that your 1st @cmd should work. Take a few steps back; maybe in all your hacking, things have gotten confused. Just try this simple code and show your exact error output:
use warnings; use strict; use IPC::Run qw(run timeout); my @cmd = ('/usr/bin/ffmpeg', '-y', '-i', 'long_input.mov', 'long_outp +ut.wav'); run \@cmd, timeout(3);

If that's still broken try something even simpler:

use warnings; use strict; use IPC::Run qw(run timeout); my @cmd = qw(ls /tmp); run \@cmd, timeout(3);

Are you using a recent version of IPC::Run?