Suppress notification emails from cron

VitalPBX Community Support Wish List Suppress notification emails from cron

Up
0
Down
  • Post
    tonywhelan
    Participant

    Is there a way to disable email notifications when cron executes?

    I have a script set up with the task manager and cron profile, and it runs every 5 minutes to check the status of the trunks. If a trunk changes status it will email me a notice.

    However cron sends me an email every time any cron job is run, which means I get an email every 5 minutes!

    I have manually edited the task-manager-1 entry in /etc/cron.d to append “>/dev/null 2>&1” to the command which suppresses the cron email, but every time there is a system update this extra bit gets deleted and the emails start again.

    I have set MAILTO=”” in /etc/crontab but that doesn’t seem to stop the cron emails.

     

    0
Viewing 3 replies - 1 through 3 (of 3 total)
  • Replies
Viewing 3 replies - 1 through 3 (of 3 total)

Tagged: 

  • You must be logged in to reply to this topic.