[SunHELP] cron question

Sangbutsarakum, Patai sunhelp at sunhelp.org
Wed Sep 26 07:53:19 CDT 2001


Dear friend
For me I'll split to be 2 cron

1. 11:45 PM on 27th through 31 st each month
45 23 27-31 * 1-5 /your/script

2. 11:45 PM on 1th through 4th each month
45 23 1-4 * 1-5 /your/script

Hope this help
Patrick

-----Original Message-----
From: Dave.Zarnoch at sungard.com [mailto:Dave.Zarnoch at sungard.com]
Sent: Wednesday, September 26, 2001 18:43
To: sunhelp at sunhelp.org
Subject: [SunHELP] cron question


Folks,

I need some help on crontabs...

I have a script that needs to be run:

at 11:45 PM

on the 27th through the 31st and the 1st through the 4th each month

only Monday thru Friday

I have the following crontab entry:

45 23 27-31,1-4 * 1-5 /usr/local/script

Unfortunately, it is running every night....

Is there some sort of "precedence" in cron?

(e.g.) since I have set the "weekday" field at "1-5"
           is this overriding the "day of month field"?

Thanks!

DaveZ

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list