Killall(3pm) User Contributed Perl Documentation Killall(3pm)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 (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
perl v5.14.2 2013-02-10 Killall(3pm)
Check Out this Related Man Page
killall(1M) System Administration Commands killall(1M)NAME
killall - kill all active processes
SYNOPSIS
/usr/sbin/killall [signal]
DESCRIPTION
killall is used by shutdown(1M) to kill all active processes not directly related to the shutdown procedure.
killall terminates all processes with open files so that the mounted file systems will be unbusied and can be unmounted.
killall sends signal (see kill(1)) to the active processes. If no signal is specified, a default of 15 is used.
The killall command can be run only by the super-user.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO kill(1), ps(1), fuser(1M), shutdown(1M), signal(3C), attributes(5)SunOS 5.10 14 Sep 1992 killall(1M)
I am doing some system tuning and figuring out how to write a script that will kill multiple processes or all processes with the same owner. Can someone help me out? Thanks (5 Replies)
hi all...
I investigate if exists some script so that when unix run an application (in this case backup's), so after of that does run killall command to all users connected, or if it is possible to be put in crontab...
I wait for and they help me so I do not have much knowledge in programming....... (2 Replies)
Hi,
When typing the command ps -fe.the system is showing a process called SYSCON:confused:....
I am not sure what process is that.I hava a script that kills all command staring with 'sys' but i don't want to kill syscon:( since i think it is some system process:confused:
.Please help me to find... (1 Reply)
:wall:killall -wHi
i need to understand how the -w option works in terms of processes.
If this command is issued does it literally terminate all running processes ..wait for them all to be terminated and then return to standard output ?
Thanks in advance (2 Replies)
Good morning, In a Production environment ive seen this command that kills processes
kill -9 -1
Because i am in a production environmet i can not execute this comamnd, so i would like to know what is the difference for the conventional kill -9 PID ?
Thanks a lot (11 Replies)