Back To Resources, Guides and Information

Stop Cron Jobs From Automatically Sending You Emails

This was posted on 06/19/2011 and was filed in Tips And Tricks | (No Comments Yet)

If you use a lot of cron jobs like I do, you tend to have some that you would like automatically sent over, and some you want to just let run without ever sending you an email and clogging your inbox. This line can be added to the end of your cron job command to stop the command from sending an email out and off to you:

>/dev/null 2>&1

Here would be a quick example for you:

php /home/my_directory_folder/public_html/support/cron/silly-job.php >/dev/null 2>&1

I know that this works for all cPanel hosts - if you have any better methods feel free to post them below.

Have I Helped You? Share Some Love!

Comments

» No Comments have been made on this. How about you start us off?

Comment On This

© Max Morgan Design 2009 - 2012 | Page Generated In 0.18647 Seconds Using 42 MYSQL Queries