Learned a new thing (parsing quirk, I think) about Debian cron today: in the cron expression, you can put "#comment" after each component. For example, apparently this is a valid cron expression: *#looks *#weird *#but *#works * 2 atbildes
Pēteris Caune (2021-10-13 15:03:08) |
Learned a new thing (parsing quirk, I think) about Debian cron today: in the cron expression, you can put "#comment" after each component. For example, apparently this is a valid cron expression: *#looks *#weird *#but *#works * | ||
Pēteris Caune (2021-10-13 15:07:40) |
Some cron-like systems support "* * * * 0#2" syntax, and interpret it as "every minute on the second Sunday of month". Debian cron accepts it too, but interprets it as "every minute on Sundays" (it simply ignores the "#2" bit). | ||
Pēteris Caune (2021-10-13 15:21:51) |
Came across this quirk while running cron, croniter and cronsim through various expressions and comparing results. For an expression ending in "0#2" all three were giving different results, yikes :-) cronsim is a cron parser/evaluator I'm working on: https://t.co/OLVMOKtJqC |