Proc::Parallel::RemoteKiller - kill off slave processes on control-C
use Proc::Parallel::RemoteKiller; $remote_killer = Proc::Parallel::RemoteKiller->new; $remote_killer->note($host, $pid); $remote_killer->forget($host, $pid); $remote_killer->kill_them_all(); $remote_killer->forget_all();
This module tries to make control-C work when you've got remote slave processes. It maintains a list of such processes and catches $SIG{INT}.
$SIG{INT}
You tell it about new processes with note. You tell it to forget about processes with forget and forget_all. You can ask that they all be terminated with kill_them_all().
note
forget
forget_all
kill_them_all()
It uses ssh to get to the remote systems to kill the processes.
ssh
This package may be used and redistributed under the terms of either the Artistic 2.0 or LGPL 2.1 license.
To install Proc::Parallel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Proc::Parallel
CPAN shell
perl -MCPAN -e shell install Proc::Parallel
For more information on module installation, please visit the detailed CPAN module installation guide.