Categories
Linux Mastering Development

Daily cron jobs active or inactive for periods of months

I’m trying to schedule a cron job and I’m failing soundly. I’m even starting to think that this can’t be done with cron.

I’m trying to set a job that will run at a certain hour every day for six months. Then it should stop for two months and start running again for six months, after which it will stop for two months, run again for six months and so on.

In a nutshell, I want it to run daily for six months, stop two months and start running again for six months in an endless 6 months on/2 months off loop. I can figure a way to do it if a year had 14 months, but sadly it has only 12.

Is it even possible to do this with cron?

TIA

Leave a Reply

Your email address will not be published. Required fields are marked *