Re: Automatic way of terminating a program

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux