KILLALL(1,C) AIX Commands Reference KILLALL(1,C)
-------------------------------------------------------------------------------
killall
PURPOSE
Cancels all processes except the calling process.
SYNTAX
+-------------+ +----------------+
killall ---| one of |---| |---|
| +---------+ | +- kernel-image -+
+-| - |-+
| -signal |
+---------+
DESCRIPTION
Warning: The killall command must be executed from the Bourne Shell, or you
will get unexpected results.
The killall command cancels all processes that you started, except those
producing the killall process. This command provides a convenient means of
cancelling all processes created by the shell that you control. When started
by a user operating with superuser authority, the killall command cancels all
processes that can be canceled except those that started it.
The kernel-image parameter specifies the name of the system load module (by
default, /unix).
FLAGS
- Sends a SIGTERM signal initially and then sends a SIGKILL (kill)
signal to all processes that survive for 30 seconds after receipt of
the signal first sent. This gives processes that catch SIGTERM
signal an opportunity to clean up. (For more information, see the
signal system call in AIX Operating System Technical Reference.)
-signal Sends the specified signal number. (For information about signal
numbers, see the signal system call in AIX Operating System
Technical Reference.)
EXAMPLES
1. To stop all background processes that have started:
killall
Processed November 8, 1990 KILLALL(1,C) 1
KILLALL(1,C) AIX Commands Reference KILLALL(1,C)
This command sends all background processes the kill signal 9 (also called
SIGKILL).
2. To stop all background processes, giving them a chance to clean up:
killall -
This command sends signal 15 (SIGTERM), waits 30 seconds, and then sends
signal 9 (SIGKILL).
3. To send a specific signal to the background processes:
killall -2
This command sends signal "2" (SIGINT) to the background processes.
RESTRICTIONS
If the Transparent Computing Facility is installed, only those processes
running on the site where killall is run are cancelled. To determine on which
sites your processes are running, use the command ps -r.
FILES
/unix System kernel image.
/dev/mem Used for reading the process table.
RELATED INFORMATION
See the following command: "kill."
See signal system call in AIX Operating System Technical Reference.
Processed November 8, 1990 KILLALL(1,C) 2