Kill via Cron...
Randal L. Schwartz
merlyn at stonehenge.com
Tue Apr 20 19:57:26 UTC 2010
>>>>> "Karl" == Karl Vogel <vogelke at hcst.com> writes:
>>> On Tue, 20 Apr 2010 08:52:58 +0100,
>>> "mcoyles" <mcoyles at 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 at 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
More information about the freebsd-questions
mailing list