On Mon, 27 May 2002, madhvi wrote:
> Hello
>
> I have tried automating the backup of my files by scheduling the
> execution of scripts ( I am using rcp to copy the files onto another
> fileserver).
>
> The problem encountered is :-
>
> I log in as root and issued the crontab -e command. Added the following lines
> 10 16 * * 3 5 /scripts/backup/twiceweekly.sh
> 10 16 * * 4 /scripts/backup/weekly.sh
> 50 15 30 * * /scripts/backup/monthly.sh
>
> These files are not being exexcuted.
>
> Using crontab -e, I added the following line for testing purposes on a
> Thursday and 50 14 * * 4 /scripts/backup/twiceweekly.sh Cron is reloaded
> thereafter and the script is executed. However the other scheduled
> scripts are not executed. No error messages are seen in /var/log/cron
> as well.
Try replacing your first line,
10 16 * * 3 5 /scripts/backup/twiceweekly.sh
with
10 16 * * 3,5 /scripts/backup/twiceweekly.sh
Without the comma, I'd expect the cron job to try executing
5 /scripts/backup/twiceweekly.sh
once a week on Wednesday instead of executing
/scripts/backup/twiceweekly.sh
on Wednesday and Friday. I have no idea why the weekly and monthly
scripts fail, and I don't know why you didn't get an error message of the
form "5: Command not found" with the crontab file as you had it, but
perhaps you would have gotten the error message emailed to you if you had
in your crontab file the line
MAILTO=<your email address>
--
Steven Yellin
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list