On Friday 19 September 2003 23:50, wrote:
I put this line into my crontab: 29 21 * * * xmms -p /home/adagilson/acordar.m3u
Although, the command line: xmms -p /home/adagilson/acordar.m3u ...can play a list of mp3 very fine when executed by a Gnome terminal, it is not working with Cron. Take a look at the result from the command CRONTAB -L: $crontab -l #vi crontab 29 21 * * * xmms -p /home/adagilson/acordar.m3u
:wq!#You have new mail in /var/spool/mail/adagilson
This is the MESSAGE SENT BY CRON: Message 15: From adagilson@linux.local Fri Sep 19 21:29:01 2003 Date: Fri, 19 Sep 2003 21:29:00 -0300 From: root@linux.local (Cron Daemon) To: adagilson@linux.local Subject: Cron <adagilson@linux> xmms -p /home/adagilson/acordar.m3u X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/home/adagilson> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=adagilson>
/bin/sh: xmms: command not found
Provide the fullpath to xmms. Depending on the user that Crontab executes xmms as, it may not be in it's path. Probably, crontab doesn't have a $PATH var. /usr/bin/xmms in place of plain xmms should work -- The Meek shall inherit the Earth, for the Brave are among the Stars!