regulating the time a process can run with crontab?

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

 



You use a separate script which sends a kill signal to
lynx. This would call a script that either looks up the pid
of your lynx process or identifies it from your original script.

For example the first line in your script could be:
echo $$ > $HOME/.recordingpid


the second script would execute:

kill -9 `cat $HOME/.recordingpid`

Rudy

On Thu, Dec 27, 2001 at 10:59:16PM -0600, Brent Harding wrote:
> 	Suppose I want to use the lynx --source option to record an mp3 stream
> that will start at a certain time, and I want to stop it at a certain time.
> I could start it with a cron entry, in a script, but how in such a script
> would I cause lynx to terminate, assuming the mp3 stream never quits?
> There's no way of telling lynx --source how much to get if this is in the
> background.
> Thanks.
> 
> 
> 
> 
> _______________________________________________
> 
> Blinux-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/blinux-list





[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]