Prevent cron job from sending out the mail

ARUN Post in CRON
0

To prevent the sending of errors and output, add any one of the following at the end of the line for each cron job to redirect output to /dev/null.

>/dev/null 2>&1.
or

&> /dev/null

* 1 * * * /path/script.sh >/dev/null 2>&1

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.