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?
badreeceAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
> 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.
0
bedotCommented:
sorry for ahoff, it's possible with adding few logic in it:

0 12 8-14 * 1 script

so between 8th & 14th day of the month, only a monday: that will be always the second monday

:-)
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
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 :-))
0
badreeceAuthor Commented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.