From: Javier de Burgos <jdeburgos@NOSPAMmfom.es>
Subject: Re: killing a process by name?
Date: 1999/06/09 [thread overview]
Message-ID: <375E3103.9B5EEE68@NOSPAMmfom.es> (raw)
In-Reply-To: 375d6a41.14695581@news.aurora.edu
Christopher Kolar wrote:
> Foo should run until midnight, when
> it needs to be killed so that out nightly backups can happen.
>
> Problem is that: a) foo has no -kill or similar tag; b) foo does not
> drop the process number into a pid file that can be piped into a kill
> command.
Add to you crontab the following line:
00 0 * * * kill `ps aux | grep foo | tr -s " " | cut -d " " -f2`
Easy?
Regards
--
Un saludo,
Javier AKA jdeburgos@NOSPAMcanal21.com AKA 2:341/53.51@fidonet.org
next prev parent reply other threads:[~1999-06-09 4:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-08 4:00 killing a process by name? Christopher Kolar
1999-06-08 4:00 ` Serguei Patchkovskii
1999-06-09 4:00 ` Javier de Burgos [this message]
1999-06-09 4:00 ` Jeff Denham
1999-06-16 4:00 ` Tim Mooney
1999-06-16 4:00 ` Jeff Denham
1999-06-09 4:00 ` Adam Price
1999-06-10 4:00 ` Bruno KRINER
1999-06-09 4:00 ` Mark Lambert
1999-06-09 4:00 ` Paul David Fardy
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox