I am having a wee bit o' trouble with cron today....
I have been trying to setup cron to wake me up in the morning (alram clock)
I have made sure that I am listed in /etc/cron.allow
I have made my own script in my home directory and I run this in my cron file that I make by issuing the "crontab -e" command.
Yet it produces no sound.
I checked my command in the command line and I know this works:
Code:
mplayer -really-quiet -playlist /home/<my user here>/.playlist
Figured it might be an mplayer issue so I placed this command in place of the mplayer command above, in my script:
Code:
sox /home/<my user here>/Metallica/TheCallOfKtulu.ogg - ossdsp /dev/sdp
Again, in cron this does not work, but if I issue it at a command line it works like a charm....
My /var/log/cron output is:
Code:
Jan 25 20:53:51 dhcppc5 crontab[6267]: (user) REPLACE (user)
Jan 25 20:53:51 dhcppc5 crontab[6267]: (user) END EDIT (user)
Jan 25 20:54:01 dhcppc5 crond[2628]: (user) RELOAD (cron/user)
Jan 25 20:56:11 dhcppc5 crontab[6347]: (user) BEGIN EDIT (user)
Jan 25 20:56:19 dhcppc5 crontab[6347]: (user) REPLACE (user)
Jan 25 20:56:19 dhcppc5 crontab[6347]: (user) END EDIT (user)
Jan 25 20:57:01 dhcppc5 crond[2628]: (user) RELOAD (cron/user)
The alarm was supposed to go off a minute after each "edit" above.
Thanks in advance.
PS-I do OWN that Metallica song! 'Cause we all know that METALLICA RULES!