Problems running SH jobs using CRON

Aldo Foot lunixer at gmail.com
Tue Aug 12 23:57:55 UTC 2008


On Tue, Aug 12, 2008 at 4:13 PM, Dave Burns <tburns at hawaii.edu> wrote:
> On Tue, Aug 12, 2008 at 1:04 PM, jeff goudie <jrgoudie at gmail.com> wrote:
>>
>> [root at alice jeff]# cat /var/spool/cron/root
>> 45 12 * * 0 root /bin/sh /home/jeff/jeffbkup.sh
>> 11 3 * * 6 root /home/jeff/rsynchbkup.sh
>>
>> When each scheduled job fires off, I get an email from Cron_Daemon
>> with this message:
>>
>> /bin/sh: root: command not found
>
> Remove the word 'root' from both lines?
>
> I'm not positive, but if the two scripts have the proper #!/bin/sh
> line in them, putting /bin/sh in the crontab line should also be
> unnecessary.
>
> Dave
>

That's correct.

The lines should work like this:
45 12 * * 0 /home/jeff/jeffbkup.sh
11 3 * * 6  /home/jeff/rsynchbkup.sh

~af




More information about the fedora-list mailing list