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
xmms -p /home/adagilson/acordar.m3u X-Cron-Env: X-Cron-Env: X-Cron-Env: X-Cron-Env:
/bin/sh: xmms: command not found Thanks for any help a. John Pettigrew escreveu:
In a previous message, Evan Morris wrote:
30 14 * * * root /usr/bin/perl /home/default/scriptname.pl some_argument
[snip]
Basically, I want to know how to tell the system to run a specific perl script at a certain time, and to accept a command line argument.
The first thing is to ensure that you have the command format correct - that is, if you type it into a console, does it do what you want? Once you have that format, just transfer the command into your crontab. The time/date and user fields are correct in the example you gave AFAIK.
If you want easier control of cron jobs, try webmin - it has a module for crons that makes it easier to manage. I discovered this tool recently and it's fantastic, with modules for configuring loads of different aspects of your system.>>
HTH John ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/