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@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - Lottery: A tax on people who are bad at math. - ----------------------------------------------------------------------