in case of news fire, break this glass

croft at su-aimvax.ARPA croft at su-aimvax.ARPA
Wed Apr 16 11:32:50 AEST 1986


From: Bill Croft <croft at su-aimvax.ARPA>

Since the news unbatcher has gone berzerk on us twice already, I offer
this expedient for harried vax managers until Brian gives
us a fix:  just type:

yourhost# killstring news

And the shell file:

----
#!/bin/sh
#
#	killstring string 
#
# 	shell file to kill all processes owned by "string" or having 
# 	names containing "string".
set -x
kill -9 `ps aux | sed -e "/$1/!d
/killstring/d
s/^[a-z]* *\([0-9]*\) .*/\1/" `



More information about the Comp.unix.wizards mailing list