[KLUG Members] Cron
Adam Williams
members@kalamazoolinux.org
Sat, 13 Sep 2003 00:46:34 -0400
> I do not seem to be able to get cron to do my bidding. I have used
> crontab to put two different jobs in and neither will execute.
> 12 1 * * * rsync -rtpl -e ssh --delete /home/shared/work -->
> user@Way:/home/user/work (this is a single line command)
> 58 1 * * * /bin/cron_mailtest
> These have been placed as a user and as root. Neither work.
> After each adjustment to the crontab, cron was restarted.
Does "crontab -l" list these jobs as scheduled?
> Both the command and script work if manually typed in the command line.
> Any Ideas are welcomed.
I'd put the rsync command in a script file, and call that script file
rather than literally scheduling the command.
Ideally make it a script in /etc/cron.daily rather than scheduling it
explicitly, if the daily time is acceptable (I think it is 4am).