Use an `at` command to run `killall PROCESSNAME`  15 minutes later.  It's
crude, but effective and lets you specify which process by command name
instead of PID.  See TFM for killall(1).

--Mike

"Barker, Gerald A (MD)" wrote:

> I am trying to use "at" to automatically record a radio program using "rec"
>  from the command line.    This works fine except I want to turn it off
> after about 15 minutes and to do this I need to output a control-c to
> terminate rec.  I have tried to do this with no success.  I can't find a
> timer option in at and running a second at or cron 15 minutes later doesn't
>  work because rec is waiting for a control-c and hasn't returned control
> to the command line.  If I need to write a perl script could you give some
> basic advice what approach to take.  Thanks
>
> Garry Barker

--
Michael J. Smith [EMAIL PROTECTED] [EMAIL PROTECTED]
4052 Southway Loop, Springfield OR 97478
(541) 726-1561


begin:vcard 
n:Smith;Michael
tel;home:(541) 726-1561
x-mozilla-html:TRUE
org:Slack-a-lot Enterprises
adr:;;4052 Southway Loop;Springfield;OR;97478;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Slacker
note:Russian Translator, Linux Guru, Signals Intelligence Specialist, ORNG Infantry Fire Team Leader, Flyfisher since age 12
x-mozilla-cpt:;-3584
fn:Michael Smith
end:vcard

Reply via email to