How to disable the mail alert when running cron jobs (crontab)Written by Uwe on August 22, 2011
By default you will always receive an email to your local email account whenever a cron job either does not work or wants to output something.
To deactivate this you have to do the following.
First open your cron jobs…
$ crontab -e
…and then either put:
…at the end of the line of the command.
Your cron job will then look like:
* * * * * /path/to/my/script.sh >/dev/null 2>&1
* * * * * /path/to/my/script.sh &> /dev/null
Save the file. Done.
Create your invoice in just 60 seconds.Create and send your invoice in under a minute. For free. Forever.
Sign up today to see just how easy invoicing can be.