-
-
26 Sep 2021 23:04:23 UTC
- Distribution: Proc-ProcessTable
- Module version: 1.0
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (26)
- Testers (1435 / 34 / 0)
- Kwalitee
Bus factor: 3- 60.02% Coverage
- License: artistic_2
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (95.15KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- File::Find
- Storable
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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 (seekill()
) and a process pattern. This pattern is matched against the process' command-line as theps
command would show it (ps
is not used internally, instead a package calledProc::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 forProc::Killall
to function.SEE ALSO
Module Install Instructions
To install Proc::ProcessTable, copy and paste the appropriate command in to your terminal.
cpanm Proc::ProcessTable
perl -MCPAN -e shell install Proc::ProcessTable
For more information on module installation, please visit the detailed CPAN module installation guide.