New Feature Announcement: Master Your Email Delivery with the Mail Delivery Center

How do I stop / suppress cron emails from being sent or logged?

You can easily suppress the output of any cronjob by redirecting output to /dev/null. You can do this by appending >/dev/null 2>&1 to cronjob, for which you want to suppress output.

0 2 * * * /home/backup.sh >/dev/null 2>&1
  • The >/dev/null tells the cron to send all output (STDOUT) to /dev/null
  • The 2>@1 tells the cron to send all errors (STDERR) to same as (STDOUT)
  • 349 Users Found This Useful
Was this answer helpful?

Related Articles

 Connect to your server via SSH

SSH allows secure file transfer and remote logins over the internet. Your connection via SSH is...

 How to force your site to use SSL (HTTPS) using

First of all, you will need to install an SSL certificate to your siteOnce your certificate is...

 How do I change PHP versions, or change my PHP settings / config?

The process of setting your PHP version and the 'variables' (such as memory_limit values) differs...

 How do I install a free SSL via cPanel?

Installing an SSL certificate in cPanel is easy! Best of all, it's free with WebGee!Important:...

 How to send emails in WordPress using the WP SMTP Mail plugin

Instead of using the default PHP mail() function, you can send emails using our SMTP services via...

Powered by WHMCompleteSolution