[aclug-L] Re: script to kill
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Y'know, I just remembered this little Korn shell script I've got here...
You type something like "pskill dd" and it'll kill all process that include
"dd" anywhere in the ps list, except
the one that you launched the command from ($$).
Unfortunately for you I'm too lazy to translate this into bash, but I think
it's about as simpe as removing some minus signs.
Anyhow, the answer to your question is: stay away from the "$$" process.
Thanks to Jon Beadles for writing this several centuries ago (in dog years).
- Alden Wilner
Just Imagine: A window sticker of a little boy peeing on a confederate flag.
ps -ef | egrep "$text" | grep -v grep |
while read line
set $line x
if [ $process -ne $$ ]
kill -9 $process
>From: glandix@xxxxxxxxxxxxxx [mailto:glandix@xxxxxxxxxxxxxx]
>Sent: Wednesday, March 22, 2000 11:51 AM
>Subject: [aclug-L] Re: script to kill
>ok, i've got this working, but how do i fit the kill command with it?
>i tried what i thought would be correct, but it killed my term, too...
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
|[Prev in Thread]
||[Next in Thread]|
- [aclug-L] Re: script to kill,
Wilner, Alden <=