Koozali.org: home of the SME Server

stop many emails form cron

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
stop many emails form cron
« on: September 01, 2006, 11:10:19 PM »
Hi,

I have made some adjustements to crontab. However, every scripts that is run results in an email to root. Is there a way to stop this?

My crontab looks something like this (and yes I want those scripts):

#heartbeat in logging
* * * * * root logger heartbeat date
#dhcp check, do I have an ip
5,15,25,35,45,55 * * * * root /root/scripts/checkip
#do dailystuuf
1 1 * * * root /root/scripts/dodailystuff


Hans-Cees
nl.linkedin.com/in/hanscees/

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
stop many emails form cron
« Reply #1 on: September 02, 2006, 12:13:20 AM »
#heartbeat in logging
* * * * * root logger heartbeat date >/dev/null 2>&1
#dhcp check, do I have an ip
5,15,25,35,45,55 * * * * root /root/scripts/checkip >/dev/null 2>&1
#do dailystuuf
1 1 * * * root /root/scripts/dodailystuff  >/dev/null 2>&1


the fisrt ">/dev/null " will send messages returned to null, and the second  "2>&1" will return errors to the same destination than the first one

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
stop many emails form cron
« Reply #2 on: September 02, 2006, 04:19:55 PM »
Quote from: "unnilennium"
#heartbeat in logging
* * * * * root logger heartbeat date >/dev/null 2>&1
#dhcp check, do I have an ip
5,15,25,35,45,55 * * * * root /root/scripts/checkip >/dev/null 2>&1
#do dailystuuf
1 1 * * * root /root/scripts/dodailystuff  >/dev/null 2>&1


the fisrt ">/dev/null " will send messages returned to null, and the second  "2>&1" will return errors to the same destination than the first one


Thanks! that works.

Hans-Cees
nl.linkedin.com/in/hanscees/