Kill

Gordon Marx gcmarx at gmail.com
Tue Dec 7 15:07:27 EST 2004


On Tue, 07 Dec 2004 14:55:54 -0500, Bob Gorman <bob at rsi.com> wrote:
> I wrote one that kills nicely at first (sigterm, sigint), then if the process persists more aggressive with sigkill.

I suggest the BOFH method:
kill `ps -fu $UNAME | awk '{print $2}' | grep -v PID`

Yes, it's a bit scorched earth, but you can't make an omelette without
breaking a few heads.

-- 
Gordon Marx
gcmarx at alumni.virginia.edu



More information about the Discuss mailing list