[SunHELP] cron question

Kovalev, Ivan sunhelp at sunhelp.org
Wed Sep 26 07:37:11 CDT 2001


Yes, sort of: DayOfMonth and Weekday are OR-ed. Workaround is to put check
in your script itself. Take out DOW from your cron entry and in the script
bail out if DOW>5.

Ivan

-----Original Message-----
From: Dave.Zarnoch at sungard.com [mailto:Dave.Zarnoch at sungard.com]
Sent: Wednesday, September 26, 2001 7:43 AM
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