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

Re: Automatic way of terminating a program



On Monday 31 October 2005 7:37 pm, Paul Smith wrote:
> Is there some automatic way of terminating a program at a previously
> specified time?

You can use the "at" command if it's going to be for something specific (not 
periodically):

Try:

at 4:10pm <ENTER>
kill -15 `pidof myProcessName` <ENTER>
<CTRL-D>

You can specify as many commands you want after the "at" invocation and end it 
with a end-of-line (here invoked with CTRL-D).  There are many ways to invoke 
the "at" command.  Read the man page or google for it.

HTH,
Jorge


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