Cron job won't run!
-
I am trying to get Cron to run some bash script every day at 00:15 and 12:15 on a pfSense (2.4.4 p3) router with the settings shown below:
However, the job will not run. But if I define the same job as two separate entries, it will:
What am I doing wrong?
-
remove the space between the , and 12
-
@RonpfS said in Cron job won't run!:
remove the space between the , and 12
I did and it worked. But I wonder why.
-
Space isn't a digit
https://www.freebsd.org/cgi/man.cgi?crontab(5) -
Yes of course! How could I miss that! Cron treats every whitespace character as delimiter to separate minutes from hours and so on and thus flags the line as faulty and silently discards it. But I believe pfSense should issue a warning then the user forgets that fact, don't you think?
-
You don't see anythings in the systems logs ?
-
No, nothing concerning the said Cron job.