Is there a lint tool or a command line syntax checker for the files in /etc/cron.d
? I work on a support team, and some members of the team have been known to mix up the syntax for crontab
and /etc/cron.d
(i.e. omitting the user), and since such entries will cause all of the entries in the file to fail, I would like to be able to test the entries in a given file in /etc/cron.d
to make sure that the syntax is correct before cron jobs start failing.
I've read through the cron(8)
man page and searched google and serverfault for cron.d lint
and cron.d syntax checker
with no success.
Maybe this can help you: chkcrontab In short:
Alternatively, you can routinely check for
cron
logs (especially for the string "bad minute")