I have the following crontab. It executes the jobs in it, but it is filling the system log with cron.err messages.
crontab, edited with crontab -e
# Once a year, refresh the SSL certificates
0 0 1 */12 * /usr/bin/refresh_ssl_certificates.sh
# This script works fine if I just execute it from the terminal
*/1 * * * * /usr/bin/test.sh
# Debug with the simplest possible command
*/1 * * * * echo "hello"
And yet, in logread it is full of these errors. What is it trying to tell me?
Tue Jul 7 14:07:35 2020 cron.err crond[8795]: crond (busybox 1.31.0) started, log level 5
Tue Jul 7 14:08:00 2020 cron.err crond[8795]: USER root pid 9035 cmd /usr/bin/test.sh
Tue Jul 7 14:08:00 2020 cron.err crond[8795]: USER root pid 9036 cmd echo "hello"
Tue Jul 7 14:09:00 2020 cron.err crond[8795]: USER root pid 9573 cmd /usr/bin/test.sh
Tue Jul 7 14:09:00 2020 cron.err crond[8795]: USER root pid 9574 cmd echo "hello"
Tue Jul 7 14:10:00 2020 cron.err crond[8795]: USER root pid 10107 cmd /usr/bin/test.sh
Tue Jul 7 14:10:00 2020 cron.err crond[8795]: USER root pid 10108 cmd echo "hello"
Tue Jul 7 14:10:40 2020 user.notice INFO: test.sh your debug script ran
Please do not let the last line mislead you into thinking the test.sh was not running successfully before; I only added that logger in later to confirm that the script is running.