Cron Jobs Email on Completion, Stop it!

Published: 2007-09-07

A useful function in some cases but if you have mundane scripts running quite often it can get a little annoying.  To prevent the email add the following text to the end of your cron job:

>/dev/null 2>&1

for example:

15 15 * * * /home/root/do_script>/dev/null 2>&1

More from this section

RECENT ARTICLES

Lightweight blog created on Ruby/GAA/Datastore stack

Put this together a month or two back but never got around to replaci... read more

Using Node JS and Couch DB Stack for Web Dev

With the recent hype surrounding Node.js I thought I'd better get my ... read more

Campaign Monitor API Using PHP and SOAP

Campaign Monitor has a fairly comprehensive API and support docs.&nbs... read more

Google Maps Snippet

Absolute bare basics when it comes the Google Map api but a snippet o... read more

CREDITS

powered by php-wax the php framework