I'm trying to create a schedule for our Windows updates in the K1000 that will run the 1st & 3rd week of every month.  I'm having a hard time figuring this out with crontab.  Anyone have any ideas?  I'm also open to having it run every other week.

Answer Summary:
Cancel
1 Comment   [ + ] Show Comment

Comments

  • There is a very useful tool at www.cronsandbox.com - put in your crontab expression and you get back a schedule of runtimes. A good way of getting the timing values right before going live.
Please log in to comment

Answers

0

Here is a tool you might use.

 

http://www.openjs.com/scripts/jslibrary/demos/crontab.php

Answered 03/12/2014 by: nshah
Red Belt

Please log in to comment
0

 I use 00 1 15-21 * * for week 3 patch jobs and then use my power management software to wake the machines only on the night I want them to patch. The 15-21 encompasses the third week of the month and I control the day by waking the machines as detailed above. 

For week one you would use 00 1-7 * *

The 00 1 refers to 1 A.M.


Answered 03/12/2014 by: rockhead44
Tenth Degree Black Belt

Please log in to comment
0

It does not. I was unable to get every other (pick day of the week) to work.

 

Edit: I meant for this reply to be under Smal.tmcc's responses about expressions in cron.

Answered 03/12/2014 by: rockhead44
Tenth Degree Black Belt

Please log in to comment
0

have it run on the 1st and and 15th of the month. 

0 3 1,15 * *

Answered 03/12/2014 by: SMal.tmcc
Red Belt

  • Trying to run it on a Monday every other week
    • I do not believe the kace (OpenBSD) can support expressions in the cron commands. If it does:
      https://www.google.com/search?q=crontab+to+run+every+other+week&rls=com.microsoft:en-US&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1

      https://coderwall.com/p/yzzu5a
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share