Complete.Org: Mailing Lists: Archives: discussion: March 2000:
[aclug-L] Re: script to kill

[aclug-L] Re: script to kill

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "'discussion@xxxxxxxxx'" <discussion@xxxxxxxxx>
Subject: [aclug-L] Re: script to kill
From: "Wilner, Alden" <alden.wilner@xxxxxxxx>
Date: Wed, 22 Mar 2000 15:24:28 -0600
Reply-to: discussion@xxxxxxxxx

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.
It's you.

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.

set -x 


ps -ef | egrep "$text" | grep -v grep |
while read line
        set $line x
        if [ $process -ne $$ ]
                kill -9 $process

>-----Original Message-----
>From: glandix@xxxxxxxxxxxxxx [mailto:glandix@xxxxxxxxxxxxxx]
>Sent: Wednesday, March 22, 2000 11:51 AM
>To: discussion@xxxxxxxxx
>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] Current Thread [Next in Thread]
  • [aclug-L] Re: script to kill, Wilner, Alden <=