How can I execute
dateinside of a cron tab job?
I made a cronjob to record a stream every friday between 23pm and midnight. Only somehow this doesn't seem to work.
the cronjob is
57 22 * * 5 timeout -s SIGINT 66m mplayer -dumpstream http://188.8.131.52:80/slamfm -dumpfile /var/www/HOA-NL/$(date +"%U-%Y").mp3 >> /home/david/HOA-NL-LOG 2>&1
This doesn't work while the following works
57 22 * * 5 echo "foo" > /home/david/barr
and the following works either (timing out echo doesn't make sense, I know. It's just an example)
57 22 * * 5 timeout -s SIGINT 66m echo "foo" > /home/david/barr
Now I'm wondering why this doesn't work.. It doesn't give me a error or a message in /home/david/HOA-NL-LOG