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



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?






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