PDA

View Full Version : [ubuntu] crontab not working in hardy?



sartic
February 10th, 2009, 09:07 AM
Is there any problem width cron in hardy? On feisty works as charm, but on hardy sometime or never it execute my command (i am using rsync to backup files on 2nd disk). If I execute this rsync line on xterm it works all time.

laceration
February 10th, 2009, 06:27 PM
Have you added username to /etc/cron.allow?

sartic
February 10th, 2009, 06:37 PM
it doesn't help

sartic
April 22nd, 2009, 11:57 AM
I tried now jaunty rc width gnome schedule works every time.
If cron doesn+t work what can I try next on hardy?

laceration
April 22nd, 2009, 02:05 PM
Crontab has a couple of things that can screw it up that you might check.
Is the path to the command in your crontab file?
The path is in your crontab's first line.

crontab -l
If the path doesn't show in something like this

PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin

add it by editing your crontab:

crontab -e

also you might check if the command is like this

rsync
or

usr/bin/rsync
always use the full path for cron job commands

sartic
April 29th, 2009, 06:37 PM
/usr/bin/rsync

I tried that also..... not working still.