GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PROC::KILLALL (3)

.ds Aq ’

NAME

killall - Kill all instances of a process by pattern matching the command-line

CONTENTS

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
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 KILLALL (3) 2015-08-23

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.