Killing run away processes
Jeremy J Starcher
r3jjs at VAX1.CC.UAKRON.EDU
Wed Oct 3 05:23:34 AEST 1990
#!/bin/sh
#########################################################################
# This shell script will zot (kill -9) all process except the user's #
# shells. Several processes will return as none existent or some other #
# error. Ignore those. #
# #
# This script file is dedicated to all those who find themselves with #
# a program that quickly goes out of control and need a way to #
# terminate it quickly. #
# #
# Caveat: This script must be named zot #
# #
# Author: Jeremy J Starcher (r3jjs at vax1.cc.uakron.edu) #
# Date: 2 October 1990 #
#########################################################################
kill -9 `ps -aux | grep $USER | grep -v -e -csh | grep -v 'sh zot' | cut -c10-15 | paste -s -`
More information about the Comp.unix.shell
mailing list