/build/static/layout/Breadcrumb_cap_w.png

Running deploy schedules 2nd & 3rd Friday of every month

I'm trying to figure out how to run my update deployment schedules on the 2nd & 3rd Friday's of each month. The 2nd for my test groups and 3rd for my production groups. The only way I've seen to do this is using the hash character in the cron job like this:

2nd Friday: 0 18 0 * 5#2
3rd Friday: 0 18 0 * 5#3

So, those schedules would run at 6pm, every month, on the 2nd and 3rd Friday of the month. The problem is that the K1000 doesn't support the # character.

Does anyone know how I can write my cron job to deploy on the 2nd and 3rd Friday of each month??

Thanks in advance!

4 Comments   [ + ] Show comments
  • Thanks Rock, one of those links helped me out. I can run every 3rd Friday, just not of every month which is fine for me. Thanks!! - bkopec 9 years ago
  • Using crontab syntax generator like http://www.crontab-generator.org/ can help you write crontab line easy. - Fairy 9 years ago
  • bkopec,
    Could you let me know the exact cron syntax you finalized on for running patch jobs on the desired day? I want to run my patch jobs the second Thursday of every month but I'm pretty sure it's not possible with Kace's limited cron support. What did you settle on exactly? Thanks.
    -Ben - bens401 9 years ago
  • Hey Ben,
    I actually contacted Kace's tech support on this issue. As it stands, there is no way with the CRON that Kace use's, to specify specific days of the month, like the second Thursday.

    So we are pretty much stuck.

    What I do is activate and deactivate my schedules on the weekends that I am doing my updates. - bkopec 9 years ago

Answers (3)

Answer Summary:
Posted by: Fairy 9 years ago
White Belt
0
Using crontab syntax generator like http://www.crontab-generator.org/ can help you write crontab line easy.

Comments:
  • Thx for the link. Also, along with Rock's comment, I have it confirmed from Dell that what I want to do can NOT be done with the version on Cron the K1000 runs. - bkopec 9 years ago
Posted by: rockhead44 9 years ago
Red Belt
0
You can use cron tab to specify dates but you cannot say the second and third Friday every month. 

Check these 3 links:

http://www.itninja.com/question/patching-14-day-cycle

http://www.itninja.com/question/patch-schedule-run-custom

http://www.itninja.com/question/crontab-scheduling
Posted by: jamie_kace 9 years ago
Brown Belt
0
I have a post for something similar...


You could modify the logic in there to get what you want I think.

Comments:
  • Thanks for the link Jamie. Your idea is a good one and I'm taking it into consideration. - bkopec 9 years ago
  • Very nice. I like that thought. - rockhead44 9 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

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