[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sidewinder
Subject:    RE: [Sidewinder] killall or pkill??
From:       sidewinder-admin () adeptech ! com
Date:       2004-01-20 22:16:38
Message-ID: 200401211248.i0LCmhk02382 () aag ! adeptech ! com
[Download RAW message or body]

If you *are* going to go the kill route, the easier way to automate it
would be:
ps -ax | grep squid | awk '{ print $1 }' | xargs kill -9

For those (such as below, I assume) who aren't familiar with these
commands, a quick explanation:
awk '{ print $1 }' will display the first field of information from the
results of the previous command.
xargs tells it to feel the previous results into the next command.

Very handy, but when you're not sure what you're doing, PLEASE do it
carefully.

I *ALWAYS* first test by doing the string without the kill, to be sure I'm
getting the correct info, then rerun it with the kill command.

Cheers.

On Tue, 20 Jan 2004 sidewinder-admin@adeptech.com wrote:

> Not that I know of.
> 
> You could always try to do a 'ps -ax | grep squid' and then do a 'kill -9 xxxx' \
> where xxxx is the PID number. I'm script illeterate so I don't even know if that's \
> possible. 
> We do use the proxy over here but not full time. We have a webshield e500 AV \
> appliance and sometimes stuff like service packs can't go through so we use the \
> proxy to download the file and it never failed. Probably because it's not \
> solicitated a lot. 
> By the way, did anyone install the .06 patch for G2? Any comments?
> 
> -----Original Message-----
> From: sidewinder-admin@adeptech.com [mailto:sidewinder-admin@adeptech.com]
> Sent: Tuesday, January 20, 2004 10:21 AM
> To: sidewinder@adeptech.com
> Subject: [Sidewinder] killall or pkill??
> 
> 
> 
> Is there an equivalent command to "killall" or "pkill" on sidewinder 5.2.1.*??
> 
> 
> --
> Larry
> _______________________________________________
> Sidewinder mailing list
> Sidewinder@adeptech.com
> http://mail.adeptech.com/mailman/listinfo/sidewinder
> 
> _______________________________________________
> Sidewinder mailing list
> Sidewinder@adeptech.com
> http://mail.adeptech.com/mailman/listinfo/sidewinder
> 

_______________________________________________
Sidewinder mailing list
Sidewinder@adeptech.com
http://mail.adeptech.com/mailman/listinfo/sidewinder


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic