I am trying to create a custom Patch Schedule with unix contab. I have two patching jobs. The first job I want to run every other Tuesday at 10:20a ( We will say the 1st and 3rd Tuesday). The second job i want to run at 10:20a every other Tuesday, except the other two Tuesdays. (The 2nd and the 4th Tuesday) Is this possible and if so can someone please assist. 


The schudle is much complex then what I have listed above but if someone can help me figure this out I should be able to figure out the rest.  So as follows

Week One - Patch Job One - Tuesday @ 10:20a

Week Two - Patch Job Two - Tuesday @ 10:20a

and then repeat. 


0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



I believe you could use something like the following:

20 10 * * TUE#1,TUE#3 PatchJob1.sh

20 10 * * TUE#2,TUE#4 PatchJob2.sh

In the day of week field, you can specify days by name and using # can specify which week of the month (i.e. TUE#1 = 1st Tuesday). This all depends on what version of cron and what extensions were compiled in, but afaik those are pretty standard extensions.

Answered 01/08/2014 by: BHC-Austin
Fourth Degree Black Belt

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja
Nine Simple (but Critical) Tips for Effective Patch Management
This paper reviews nine simple tips that can make patch management simpler, more effective and less expensive.