Originally Posted by
shantiq
also here
trying to run the script in combination with cron ( can one do that /? )
but it does not start. is it simply not possible to combine both; or does someting need be modified in the lines i am using
ps I am feeding the cron info through mousepad which works with other timed recordings
What you're calling a script is just the command, you'd do fine if you create an actual script for THIS stream & then in your crontab just /path/to/scriptname
You can refer back to post one for this - though for Ex. the mp3 stream
use this for your script, name it something unique & simple (1 word), then make executable -
Code:
#!/bin/bash
NOW=$(date +"%b-%d-%y")
cvlc --run-time=3600 http://mp3.live.tv-radio.com/francemusique/all/francemusiquehautdebit.mp3 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/shantiq/france_musique_aujourdhui-$NOW.mp3}" vlc://quit ;
Then your crontab would be -
Code:
45 11 * * 3 /path/to/scriptname
For every stream you want to auto record then create a new script as above, just alter the cvlc command to suit
Bookmarks