crontab script resources
Posted: Thu Feb 14, 2013 4:58 am
I was not sure about selecting the right subject for this post...
I executed "nano /bin/play-radio"
in this file I have one line:
mplayer -cache 1024 --af=volume=0:1, --af=pan=1:0.5:0.5 [stream URL]
then I did "chmod -x /bin/play-radio" to make it executable.
And from "crontab -e" I added "@reboot play-radio"
When the Pi boots it streams on its own but the sound cuts off often like maybe every 10 to 20 seconds.
Where I am confused is if I rem out the @reboot in the crontab and I login via ssh and I run that same line to execute mplayer it runs nonstop with no cuts for days.
Why does it cut off when ran from the crontab and how can I fix this?
Thanks.
I executed "nano /bin/play-radio"
in this file I have one line:
mplayer -cache 1024 --af=volume=0:1, --af=pan=1:0.5:0.5 [stream URL]
then I did "chmod -x /bin/play-radio" to make it executable.
And from "crontab -e" I added "@reboot play-radio"
When the Pi boots it streams on its own but the sound cuts off often like maybe every 10 to 20 seconds.
Where I am confused is if I rem out the @reboot in the crontab and I login via ssh and I run that same line to execute mplayer it runs nonstop with no cuts for days.
Why does it cut off when ran from the crontab and how can I fix this?
Thanks.