![]() |
schedule and terminate activity
Hi,
I would like to listen to a radio stream broadcast from the UK. The problem is that this a simple stream. There is no catch up facility. You have to listen from the stream as it is broadcast. I am interested in a show broadcast 5am-7am my time. This straddles my wake up and “go to work” times. I am looking for suggestions on how to grab the stream at 5am and terminate 2 hours later or at 7am. My first thought was to set off a cron job for 5am – wget the stream. Not sure how I would tell this to stop though as the stream is continuous. Any ideas? Cheers |
Quote:
Edit: You may need a kill wget or something similar to stop it once the time has expired, now I think more on it. |
Another option is to use cron or at to launch your downloader.
If you need either to launch a graphical program, then use the DISPLAY environment variable. Then use another job for pkill. Or precede it all with timeout and a time limit when the script is launched. |
Quote:
Quote:
I'll report back then. The joys of linux and learning :) |
Yup, all good. Show received and being listened to now.
Thanks |
All times are GMT -5. The time now is 06:21 PM. |