Kill

Bob Gorman bob at rsi.com
Tue Dec 7 15:19:43 EST 2004


At 03:07 PM 12/7/2004, Gordon Marx wrote:
>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.

I suppose you'd run that in a loop too ;-)




More information about the Discuss mailing list