If you start the rec as a background process, ie, "rec&",
you will maintain control where you're at....
Maybe do "jobs" or "ps" even to get process#,
then kill it... Maybe it's not that complicated even.
good luck,
ben
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
in lake'ch, my kin... 4 Ix
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
psst! visit the LUGE homepage at http://eugene-linux.cyber-dyne.com
On Tue, 29 Feb 2000, 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
>