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

NAME

6       killall - Kill all instances of a process by pattern matching the
7       command-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
17       parameters: a signal name or number (see "kill()") and a process
18       pattern. This pattern is matched against the process' command-line as
19       the "ps" command would show it ("ps" is not used internally, instead a
20       package called "Proc::ProcessTable" is used).
21
22       "killall" searches the process table and sends that signal to all
23       processes which match the pattern. The return value is the number of
24       processes that were succesfully signaled. If any kills failed, the $!
25       variable will be set based on that last one that failed (even if a
26       successful 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
32       distributed 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.12.0                      2006-06-29                        Killall(3)
Impressum