How can I stop cron from emailing me the results of jobs I schedule?
|
By setting the environment variable "MAILTO" as "" Somethig like:
|
||||
|
|
|
If you want a single job to stop email you simply append >/dev/null 2>&1 to it For example:
|
|||
|
|
Cron only emails you if there is output, either on If it's script you've written, make it less verbose - remove unnecessary
If you still get messages after doing that, then the output is on
..although disregarding error messages is generally a bad idea! (How will you know when the cron job is broken?) You could redirect a specific command's output from stderr to stdout using
..then direct |
|||
|
|