Crontab scheduling
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.
1 Comment
[ + ] Show comment
-
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. - mlbx 10 years ago
Answers (4)
Answer Summary:
Please log in to answer
Posted by:
nshah
10 years ago
Posted by:
rockhead44
10 years ago
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.
Posted by:
rockhead44
10 years ago
Posted by:
SMal.tmcc
10 years ago
have it run on the 1st and and 15th of the month.
0 3 1,15 * *
Comments:
-
Trying to run it on a Monday every other week - HomerM 10 years ago
-
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 - SMal.tmcc 10 years ago