Previous: Crontab Format, Up: Crontabs [Contents][Index]
When run, a cronjob can print something on its standard output or error streams. The output it produces can be sent via email to a given list of addresses, appended to a file, or reported via syslog. This output redirection can be configured either globally, or individually for each job. It is controlled by the following variables:
MAILTO
_MICRON_MAILTO
_JOB_MAILTO
Send the output via email.
_MICRON_SYSLOG_FACILITY
_JOB_SYSLOG_FACILITY
Report each output line via syslog.
_MICRON_OUTFILE
_JOB_OUTFILE
Append the output to a file.
These settings are discussed in detail in the following subsections.
• Mailing the cronjob output | ||
• Logging output to syslog | ||
• Sending output to file |