Link to home
Start Free TrialLog in
Avatar of badreece
badreece

asked on

CRON scheduling

How do I set CRON up to run a script on the 2nd Monday of each month (let's say at noon)?  Is this possible?
Avatar of ahoffmann
ahoffmann
Flag of Germany image

> Is  this possible?
Short answer: NO.

You need to write a script (or any other program) which checks if it is the 2'nd monday. Then call this script via cron each monday.
I suggest perl with the Date::Manip module for the script.
ASKER CERTIFIED SOLUTION
Avatar of bedot
bedot

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
great !!
didn't think of combining the day-of-month and the day-of-week field.
Seems that this pretty old software is really good :-))
Avatar of badreece
badreece

ASKER

Thanks to Bedot for the answer and the quick reply.  I gladly give the 100 points.

Thanks to Ahoffmann for the quick reply and the proposed workaround as well.  Most Excellent.