Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!pucc-j!purdue!decwrl!glacier!Shasta!croft@su-aimvax.ARPA From: croft@su-aimvax.ARPA Newsgroups: net.unix-wizards Subject: in case of news fire, break this glass Message-ID: <244@Shasta.ARPA> Date: Tue, 15-Apr-86 20:32:50 EST Article-I.D.: Shasta.244 Posted: Tue Apr 15 20:32:50 1986 Date-Received: Fri, 18-Apr-86 21:33:04 EST Sender: daemon@Shasta.ARPA Organization: Stanford University Lines: 21 From: Bill Croft 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/" `