Surpress Crontab Email Alarts to stop error emails on linux

View previous topic View next topic Go down

Surpress Crontab Email Alarts to stop error emails on linux

Post by jamied_uk on 6th June 2016, 01:30

Code:
*/5 * * * * php -f /var/www/html/cj/email1.php >/dev/null 2>&1
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Surpress Crontab Email Alarts to stop error emails on linux

Post by jamied_uk on 6th June 2016, 01:49

How to suppress unwanted emails
Now edit the following file and comment out the send line

Code:
sudo gedit /etc/cron.d/sendmail

the line to comment out is

Code:
#*/20 *    *    *    *        smmsp    test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp

the # means its commented out so make sure it is commented out and then restart the server and all should be good Very Happy
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum