Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Kill



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org