How to make all cron jobs output to syslog?
I can configure individual cron jobs to output to syslog by making them explicitly pipe their output there, with e.g. | /usr/bin/logger -t MYJOB
. Is there any way to make all cron jobs output to syslog by default?
I suggest to create a script /usr/sbin/sendmail
that instead of sending mail, logs the contents of supposed mail message to syslog using for example logger
command.