Day of week not accepted on Cron package
-
Hello,
I was unable to found the repository of Cron package, so I'm reporting it here.
I was unable to use "wed" to specify Wednesday as "Day of the Week", I had to use it integer denomination (3). But the tip into the fields states that names are supported: The day(s) of the week on which the command will be executed. (0-7, 7=Sun or use names, ranges, or divided, *=all)
It's also stated on FreeBSD documentation it's UNIX cron format as names are supported: https://man.freebsd.org/cgi/man.cgi?crontab%285%29 -
@eduardomozart not near a router atm but you can file a bug report at pfSense.redmine.org.
-
@SteveITS Hello, thank you. The correct domain is "redmine.pfsense.org". I'll open a bug report there.
-
@eduardomozart oops sorry
-
It has been fixed into https://redmine.pfsense.org/issues/16096 but not sure if a new Cron package has been released yet
-
@eduardomozart said in Day of week not accepted on Cron package:
It has been fixed into https://redmine.pfsense.org/issues/16096 but not sure if a new Cron package has been released yet
I assume you read through that ticket? Their solution is to change the tip and remove the mention of "... or use names". You won't be able to use day of the week short names like 'wed'.
One would think it should be possible to add an input validation regex to include the (sun|mon|tue|wed|thu|fri|sat) without too much work. Certainly more work than remove the tool tip though.
-
@eduardomozart said in Day of week not accepted on Cron package:
(0-7, 7=Sun or use names, ranges, or divided, *=all)
What happens if the pfSense language isn't 'EN' or 'US' ?
@patient0 said in Day of week not accepted on Cron package:
input validation regex to include the (sun|mon|tue|wed|thu|fri|sat)
would work fine for some, not most of us ^^
-
@Gertjan said in Day of week not accepted on Cron package:
would work fine for some, not most of us ^^
I agree but that is what cron natively supports.