/build/static/layout/Breadcrumb_cap_w.png

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 9 years ago

Answers (4)

Answer Summary:
Posted by: nshah 10 years ago
Red Belt
0

Here is a tool you might use.

 

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

Posted by: rockhead44 10 years ago
Red Belt
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.


Posted by: rockhead44 10 years ago
Red Belt
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.

Posted by: SMal.tmcc 10 years ago
Red Belt
0

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ