Cron - Weekday entry can you mix range and individual days?
-
All,
I am making a Cron entry (from the GUI package) and it works for Mon-Thu (i.e. "1-4" for the weekday, but I would like to make one that runs on Sun-Thu and Sat. Will it accept "0-4,6" or do I need to enter "0,1,2,3,4,6"?
Any experience anyone?
Phizix
-
Hi
You can use lists : https://www.freebsd.org/cgi/man.cgi?crontab%285%29
"Lists are allowed. A list is a set of numbers (or ranges) separated by
commas. Examples:1,2,5,9'',
0-4,8-12''." -
THANKS!! I had done a search, but obviously my search was not well stated to come up with the right answer.
I entered the "0-4,6" in the weekday field. So it should run tonight. Thanks again.
Phizix
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.