>
>does the following crontab entry
>01 * * * * root run-parts /etc/run.hourly
>read
>run  at 1 am everyday and month run-parts ?
>
>The problem is I thought crontab entries were of the format
>
>   Minute Hour  DayOfMonth   Month   DayOfWeek   Command
>eg 0       1      *            *         *       root run-parts /etc/run.hourly
>But in run.hourly command there is an extra *, is this an error?
>
>If I change the command to 
>     
>   /30    1       *            *          *    root run-parts /etc/run.hourly
>
>Then this command will every half hour right ? 

The answer is in the above.  There are only 5 fields.  The 01 is in the
first field, the minute field.  It is NOT 0 minutes and 1 hour, it is 01
minutes.  That means the script will be run every hour, 1 minute after the
hour.  The minutes can be 000001 01 or 1.  The leading zeros are unimportant.

In your second example, it will only run at 01:30, once a day.

MB
-- 
e-mail: [EMAIL PROTECTED]
    Bart: Hey, why is it destroying other toys?  Lisa: They must have
    programmed it to eliminate the competition.  Bart: You mean like
    Microsoft?  Lisa: Exactly.  [The Simpsons - 12/18/99]
Visit - URL:http://www.vidiot.com/  (Your link to Star Trek and UPN)



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

Reply via email to