Record your favorite radio stations using VLC command line. To do this simply create a script "scriptradio.sh" which contains the following lines:
Code:
#!/bin/sh
NOW=$(date +”%b-%d-%y”)
cvlc --run-time=7200 URL-ch-e1 --sout “#duplicate{dst=std{access=file,mux=raw,dst=/home/<user>/myshow-$NOW.mp3}” vlc://quit ;
cvlc is the command line version of VLC. run-time-use to indicate the duration of the show in seconds. Replace the url with the link of the radio station of your choice. Replace the dst destination path of the file will be created. Make the script executable:
Code:
chmod +x monscript.sh
crontab -e
Add the following line, and change <user> with the username of your machine:
Code:
00 18 * * 06 /home/<user>/recordmyshow.sh
Bookmarks