Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Using IPC::Run to kill stuck process

by toolic (Bishop)
on Dec 13, 2013 at 01:43 UTC ( #1066942=note: print w/ replies, xml ) Need Help??


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?


Comment on Re: Using IPC::Run to kill stuck process
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2015-07-07 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls