On Tue, Jun 28, 2005 at 04:36:07PM +0200, Alexander Farber wrote:
> Hi Nick,
> 
> 2005/6/28, Nick Holland <[EMAIL PROTECTED]>:
> > (note: grepping the output of "ps -ax" is a starting point...but
> > remember: sometimes the you will pick up the grep line itself in ps...)
> 
> a trick for that problem is to use a (seemingly useless :-) pair of brackets:
> 
>      ps -ax | grep 'process_n[a]me'
> 
>      ps -ax | awk '/process_n[a]me/ { print $1 }' | xargs kill

.. or just use pkill(1)

I actually use that trick instead of "| grep -v grep" but it's pretty
ugly to script.

-- 
stephen

Reply via email to