version 1, including all changes.
.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
KILLALL |
| |
|
2 |
!!!KILLALL |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
OPTIONS |
| |
|
7 |
FILES |
| |
|
8 |
KNOWN BUGS |
| |
|
9 |
AUTHORS |
| |
|
10 |
SEE ALSO |
| |
|
11 |
---- |
| |
|
12 |
!!NAME |
| |
|
13 |
|
| |
|
14 |
|
| |
|
15 |
killall - kill processes by name |
| |
|
16 |
!!SYNOPSIS |
| |
|
17 |
|
| |
|
18 |
|
| |
|
19 |
__killall__ [[__-e__,__--exact__] |
| |
|
20 |
[[__-g__,__--process-group__] |
| |
|
21 |
[[__-i__,__--interactive__] [[__-q__,__--quiet__] |
| |
|
22 |
[[__-v__,__--verbose__] [[__-w__,__--wait__] |
| |
|
23 |
[[__-V,__--version__]__ [[__-s__,__--signal__ |
| |
|
24 |
''signal''] [[__--__] ''name ...''__ |
| |
|
25 |
killall__ -l__ |
| |
|
26 |
killall__ -V,__--version__ |
| |
|
27 |
!!DESCRIPTION |
| |
|
28 |
|
| |
|
29 |
|
| |
|
30 |
__killall__ sends a signal to all processes running any |
| |
|
31 |
of the specified commands. If no signal name is specified, |
| |
|
32 |
SIGTERM is sent. |
| |
|
33 |
|
| |
|
34 |
|
| |
|
35 |
Signals can be specified either by name (e.g. __-HUP__) |
| |
|
36 |
or by number (e.g. __-1__). |
| |
|
37 |
|
| |
|
38 |
|
| |
|
39 |
If the command name contains a slash (__/__), processes |
| |
|
40 |
executing that particular file will be selected for killing, |
| |
|
41 |
independent of their name. |
| |
|
42 |
|
| |
|
43 |
|
| |
|
44 |
__killall__ returns a non-zero return code if no process |
| |
|
45 |
has been killed for any of the listed commands. If at least |
| |
|
46 |
one process has been killed for each command, __killall__ |
| |
|
47 |
returns zero. |
| |
|
48 |
|
| |
|
49 |
|
| |
|
50 |
A __killall__ process never kills itself (but may kill |
| |
|
51 |
other __killall__ processes). |
| |
|
52 |
!!OPTIONS |
| |
|
53 |
|
| |
|
54 |
|
| |
|
55 |
__-e__, __--exact__ |
| |
|
56 |
|
| |
|
57 |
|
| |
|
58 |
Require an exact match for very long names. If a command |
| |
|
59 |
name is longer than 15 characters, the full name may be |
| |
|
60 |
unavailable (i.e. it is swapped out). In this case, |
| |
|
61 |
__killall__ will kill everything that matches within the |
| |
|
62 |
first 15 characters. With __-e__, such entries are |
| |
|
63 |
skipped. __killall__ prints a message for each skipped |
| |
|
64 |
entry if __-v__ is specified in addition to |
| |
|
65 |
__-e__, |
| |
|
66 |
|
| |
|
67 |
|
| |
|
68 |
__-g__, __--process-group__ |
| |
|
69 |
|
| |
|
70 |
|
| |
|
71 |
Kill the process group to which the process belongs. The |
| |
|
72 |
kill signal is only sent once per group, even if multiple |
| |
|
73 |
processes belonging to the same process group were |
| |
|
74 |
found. |
| |
|
75 |
|
| |
|
76 |
|
| |
|
77 |
__-i__, __--interactive__ |
| |
|
78 |
|
| |
|
79 |
|
| |
|
80 |
Interactively ask for confirmation before |
| |
|
81 |
killing. |
| |
|
82 |
|
| |
|
83 |
|
| |
|
84 |
__-l__, __--list__ |
| |
|
85 |
|
| |
|
86 |
|
| |
|
87 |
List all known signal names. |
| |
|
88 |
|
| |
|
89 |
|
| |
|
90 |
__-q__, __--quiet__ |
| |
|
91 |
|
| |
|
92 |
|
| |
|
93 |
Do not complain if no processes were killed. |
| |
|
94 |
|
| |
|
95 |
|
| |
|
96 |
__-v__, __--verbose__ |
| |
|
97 |
|
| |
|
98 |
|
| |
|
99 |
Report if the signal was successfully sent. |
| |
|
100 |
|
| |
|
101 |
|
| |
|
102 |
__-V__, __--version__ |
| |
|
103 |
|
| |
|
104 |
|
| |
|
105 |
Display version information. |
| |
|
106 |
|
| |
|
107 |
|
| |
|
108 |
__-w__, __--wait__ |
| |
|
109 |
|
| |
|
110 |
|
| |
|
111 |
Wait for all killed processes to die. __killall__ checks |
| |
|
112 |
once per second if any of the killed processes still exist |
| |
|
113 |
and only returns if none are left. Note that __killall__ |
| |
|
114 |
may wait forever if the signal was ignored, had no effect, |
| |
|
115 |
or if the process stays in zombie state. |
| |
|
116 |
!!FILES |
| |
|
117 |
|
| |
|
118 |
|
| |
|
119 |
/proc location of the proc file system |
| |
|
120 |
!!KNOWN BUGS |
| |
|
121 |
|
| |
|
122 |
|
| |
|
123 |
Killing by file only works for executables that are kept |
| |
|
124 |
open during execution, i.e. impure executables can't be |
| |
|
125 |
killed this way. |
| |
|
126 |
|
| |
|
127 |
|
| |
|
128 |
Be warned that typing __killall__ ''name'' may not |
| |
|
129 |
have the desired effect on non-Linux systems, especially |
| |
|
130 |
when done by a privileged user. |
| |
|
131 |
|
| |
|
132 |
|
| |
|
133 |
__killall -w__ doesn't detect if a process disappears and |
| |
|
134 |
is replaced by a new process with the same PID between |
| |
|
135 |
scans. |
| |
|
136 |
!!AUTHORS |
| |
|
137 |
|
| |
|
138 |
|
| |
|
139 |
Werner Almesberger |
| |
|
140 |
!!SEE ALSO |
| |
|
141 |
|
| |
|
142 |
|
| |
|
143 |
kill(1), fuser(1), pgrep(1), pidof(1), ps(1), |
| |
|
144 |
kill(2) |
| |
|
145 |
---- |