Score:0

How to make all cron jobs output to syslog?

cn flag

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?

cn flag
I would suggest to put that line behind all cron job lines. The tag at the end is very useful when searching through syslog.
Score:2
cn flag
raj

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.