Automatic way of terminating a program
Rick Stevens
rstevens at vitalstream.com
Mon Oct 31 23:53:20 UTC 2005
On Mon, 2005-10-31 at 23:37 +0000, Paul Smith wrote:
> Dear All
>
> Is there some automatic way of terminating a program at a previously
> specified time?
You can use "at" to schedule a job to run at some point in time. And
you can use "/usr/bin/killall some-process-name" to kill it. So,
echo "/usr/bin/killall fred" >/tmp/killfred
at -f /tmp/killfred 14:30
should do it.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- Lottery: A tax on people who are bad at math. -
----------------------------------------------------------------------
More information about the fedora-list
mailing list