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
Browse By Category
- All Posts
- Useful Websites
- Money Savers
- Tips And Tricks
- Social Media
- Guides and Information
- PHP
- How-Tos
Latest Posts
- » PHP Unserializer
- » How To: Quickly Add a New PHP Extension Via SSH
- » Easily Open A TCP Port On Your Stock cPanel Server
- » Free Code: Find The Total Line Count Of A Folder Using PHP
- » Free Code: ReCaptcha Form Validation With PHP
- » View All
Advertising
© Max Morgan Design 2009 - 2012 | Page Generated In 0.18647 Seconds Using 42 MYSQL Queries


