chkcrontab
chkcrontab copied to clipboard
Check the MAILTO field
I am running CRON on Debian 9 machine with Vixie CRON.
The MAILTO field cannot have space between commas. E.g, this is not legal:
MAILTO="[email protected], [email protected]"
but removing the comma between the two will make it legal:
MAILTO="[email protected],[email protected]"
Can a warning be added that checks for this case.
Reference: https://serverfault.com/questions/133058/how-to-send-the-output-from-a-cronjob-to-multiple-e-mail-addresses#comment616379_133062