Signal, ver. 0.7 Alpha Copyright chux0r.org, 2001. Licenced under the LGPL: http://www.gnu.org/copyleft/lesser.txt The kill command is used to kill jobs using their PID and a signal (SIGHUP, SIGKILL, etc). This is useful when one knows the PID. But what if you wanted to signal all jobs belonging to user foobar? What if you wanted to kill all programs by name? This usually requires one to use the ps command to get a listing of those processes in order to figure out their PIDs, ownership, what they are named, etc. The signal utility attempts to fill in this need. Usage: signal -[type] -[c|o|p|u|x] [name] {name} {-q} OR signal [-v|-h] [1] signal by PID (normal) -p --pid [2] signal by command name (CMD) -c --cmd [3] signal by username -u --user [4] combine [2] and [3] -o --cmdby [5] like [4], except leave newest proc alone -x --exceptnewest [6] no user interaction req (for scripted use) -q --quiet [7] print the version of signal -v --version [8] print out a helpful message -h --help WARNING WILL ROBINSON. DANGER!!! Do NOT use this utility on ps, grep, or sed processes. Since I use these heavily in processing the data, if one "signal'd" any of these, the program would behave unpredictably. Mainly, this was created to be run as "root" and to send signals to daemons, services, processes with children, processes that spawn other processes, that sort of thing - ctg Examples: To get some basic info about signal: # signal -v To get some help with signal: # signal --help To kill a process with a PID of 12345: # signal -KILL -p 12345 To send SIGHUP to all httpd processes: # signal 1 --cmd httpd To nuke all processes owned by username "pointyhairedboss": # signal -9 -u pointyhairedboss To kill all commands named "vi" owned by user "pointyhairedboss": # signal KILL --cmdby vi pointyhairedboss To send HUP to all processes named "mwm" owned by user "print01" except the newest process: # signal -1 -x mwm print01 To send SIGKILL to all processes owned by user "pointyhairedboss" with no prompting: # signal KILL --user pointyhairedboss -q