debian man page for proc::killall

Query: proc::killall

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Killall(3pm)						User Contributed Perl Documentation					      Killall(3pm)

NAME
killall - Kill all instances of a process by pattern matching the command-line
SYNOPSIS
use Proc::Killall; killall('HUP', 'xterm'); # SIGHUP all xterms killall('KILL', '^netscape$'); # SIGKILL to "netscape"
DESCRIPTION
This module provides one function, "killall()", which takes two parameters: a signal name or number (see "kill()") and a process pattern. This pattern is matched against the process' command-line as the "ps" command would show it ("ps" is not used internally, instead a package called "Proc::ProcessTable" is used). "killall" searches the process table and sends that signal to all processes which match the pattern. The return value is the number of processes that were successfully signaled. If any kills failed, the $! variable will be set based on that last one that failed (even if a successful kill happened afterward).
AUTHOR
Written in 2000 by Aaron Sherman <ajs@ajs.com> "Proc::Killall" is copyright 2000 by Aaron Sherman, and may be distributed under the same terms as Perl itself.
PREREQUISITES
"Proc::ProcessTable" is required for "Proc::Killall" to function.
SEE ALSO
perl, perlfunc, perlvar, Proc::ProcessTable perl v5.14.2 2013-02-10 Killall(3pm)
Related Man Pages
killall(1) - linux
killall(8) - osf1
killall(1m) - sunos
proc::processtable(3pm) - debian
proc::processtable::process(3pm) - debian
Similar Topics in the Unix Linux Community
using killall command
kills command
The &quot;PS&quot; command was displaying*terminals named as &quot;SYSCON&quot;
Verifying killall command usage
Understanding Killall command , wait option