Kill

John Chambers jc at trillian.mit.edu
Tue Dec 7 17:04:30 EST 2004


Bob Gorman wrote:
| 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 ;-)

And he'd better add the "-9" arg, too. What self-respecting BOFH
would ever give a process a chance to clean up before dying?





More information about the Discuss mailing list