1Killall(3)            User Contributed Perl Documentation           Killall(3)
2
3
4

NAME

6       killall - Kill all instances of a process by pattern matching the com‐
7       mand-line
8

SYNOPSIS

10               use Proc::Killall;
11
12               killall('HUP', 'xterm'); # SIGHUP all xterms
13               killall('KILL', '^netscape$'); # SIGKILL to "netscape"
14

DESCRIPTION

16       This module provides one function, "killall()", which takes two parame‐
17       ters: a signal name or number (see "kill()") and a process pattern.
18       This pattern is matched against the process' command-line as the "ps"
19       command would show it ("ps" is not used internally, instead a package
20       called "Proc::ProcessTable" is used).
21
22       "killall" searches the process table and sends that signal to all pro‐
23       cesses which match the pattern. The return value is the number of pro‐
24       cesses that were succesfully signaled. If any kills failed, the $!
25       variable will be set based on that last one that failed (even if a suc‐
26       cessful kill happened afterward).
27

AUTHOR

29       Written in 2000 by Aaron Sherman <ajs@ajs.com>
30
31       "Proc::Killall" is copyright 2000 by Aaron Sherman, and may be distrib‐
32       uted under the same terms as Perl itself.
33

PREREQUISITES

35       "Proc::ProcessTable" is required for "Proc::Killall" to function.
36

SEE ALSO

38       perl, perlfunc, perlvar, Proc::ProcessTable
39
40
41
42perl v5.8.8                       2006-07-01                        Killall(3)
Impressum