> From: "madhvi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject:  cron
> 
> 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.

Well, the first line looks wrong.  You have an extra field, so the system
will try to execute a command called "5" and I'm not sure what it will
then do with the path to the actual command.  You might have gotten
an e-mailed error message sent to root -- I don't recall where various
crontab entry format errors appear..

Was the first entry supposed to have a comma instead of the space between
the "3" and the "5"?  It would then be a valid crontab entry, running on
Wednesdays and Fridays: "10 16 * * 3,5 /scriptsbackup/twiceweekly.sh".

Note that the "monthly" command won't be run in February, as your script
stands.  So far as I know, you'd need three entries to have the script
run on the last day of each month; of course it's *easy* to make it run
on the FIRST day of each month.  :-)  Otherwise you'd need something like:
----
50 15 28 2 * /scripts/backup/monthly.sh
50 15 30 4,6,9,11 * /scripts/backup/monthly.sh
50 15 31 1,3,5,7,8,10,12 * /scripts/backup/monthly.sh
----
which works except for doing February backup a day early on leap years.

> 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.
> 
> Grateful if someone could help me with this problem.
> 
> Regards
> madhvi

-- 
    pete peterson
    Teradyne, Inc.; 7 Technology Park Drive; Westford, MA 01886-0033
    +1-978-589-7478 (Office); +1-978-589-2088 (FAX);
    [EMAIL PROTECTED] or [EMAIL PROTECTED]

 



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to