How to send the output from a cronjob to email

For scripts that output STDERR and STDOUT, insert “MAILTO” on the line before the command crontab -e MAILTO=”recipient@domain.abc” mm hh dd mm dw command example MAILTO”luca.lomi@2l-consulting.com” 10 09 09 06 * /opt/OV/bin/OpC/opcragt -distrib -force sysone systwo sysnum For multiple e-mail addresses, use a comma to separate the recipients. The body of the email will be Read More …