15 Jun 2019 19:20:02 UTC
- Distribution: Proc-ProcessTable
- Module version: 1.0
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (26)
- Testers (720 / 68 / 0)
- KwaliteeBus factor: 3
- 61.76% Coverage
- License: artistic_2
- Perl: v5.6.0
- Activity24 month
- Download (74.08KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
killall - Kill all instances of a process by pattern matching the command-line
use Proc::Killall; killall('HUP', 'xterm'); # SIGHUP all xterms killall('KILL', '^netscape$'); # SIGKILL to "netscape"
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
pscommand would show it (
psis not used internally, instead a package called
killallsearches 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).
Written in 2000 by Aaron Sherman <firstname.lastname@example.org>
Proc::Killallis copyright 2000 by Aaron Sherman, and may be distributed under the same terms as Perl itself.
Proc::ProcessTableis required for
Module Install Instructions
To install Proc::ProcessTable, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Proc::ProcessTable
For more information on module installation, please visit the detailed CPAN module installation guide.