planned recording of a radio show 17. Jan 2011
Some radio shows aren’t offered as podcasts for copyright reasons. If there is an http stream available, then taping the show on Linux is quite easy. Use curl in combination with at to invoke a delayed recording and use the max-time parameter to set the recording length in seconds. For example to record a one hour radio show at 8 o’clock on january the 25th issue the following command:
echo "curl --max-time 3600 http://url.net > file.mp3" | at 8am Jan 25
If you really like the show an you want to listen to it on a regular basis you might want to add a cron job . For example if the show is on the air every saturday at 7 o’clock create a shell script with the following content:
#!/bin/sh
curl --max-time 3600 http://url.net > file-`date +%Y%m%d`.mp3"
and extend your /etc/crontab accordingly:
0 7 * * 6 username /path/to/script.sh > /dev/null
If you wanted get fancy you could create a private podcast for yourself. Next time.
Kommentare (1)