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!
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
Answers (3)
Answer Summary:
Please log in to answer
Posted by:
Fairy
9 years ago
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
Posted by:
jamie_kace
9 years ago
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
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
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