croniter
croniter copied to clipboard
Restrict both day-of-week and day-of-month like vixie-cron
According to the cron specification, it is not possible to restrict both the day-of-week and the day-of-month simultaneously:
While normally the job is executed when the time/date specification fields all match the current time and date, there is one exception: if both "day of month" and "day of week" are restricted (not "*"), then either the "day of month" field (3) or the "day of week" field (5) must match the current day.
Source: https://en.wikipedia.org/wiki/Cron#cite_ref-posix_8-0
Although it is generally not possible to restrict both fields, there is a hacky workaround described here and working for vixie-cron.
Here is an example on cronguru restricting both day of month and day of week: https://crontab.guru/#42_5_/32,10-17__Tue
When using Croniter, this workaround doesn't seem to work. Is this the intended behavior?
Thanks ! Martin