Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 12:57:25 -0700
From:      merlyn@stonehenge.com (Randal L. Schwartz)
To:        vogelke+unix@pobox.com
Cc:        questions@freebsd.org
Subject:   Re: Kill via Cron...
Message-ID:  <86r5m9yk0q.fsf@red.stonehenge.com>
In-Reply-To: <20100420183859.C52D9BE09@bsd118.wpafb.af.mil> (Karl Vogel's message of "Tue, 20 Apr 2010 14:38:59 -0400 (EDT)")
References:  <002c01cae05e$7eab3ea0$7c01bbe0$@wakefield.sch.uk> <20100420183859.C52D9BE09@bsd118.wpafb.af.mil>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Karl" == Karl Vogel <vogelke@hcst.com> writes:

>>> On Tue, 20 Apr 2010 08:52:58 +0100, 
>>> "mcoyles" <mcoyles@horbury.wakefield.sch.uk> said:

M> kill -9 `ps ax | grep backup | grep -v grep | awk '{print $1}'`

And you don't have to remember grep -v grep if you remember
to use "ps axc" (note the c), since arguments won't show up so the
arguments to grep won't generate a false positive.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>;
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86r5m9yk0q.fsf>