Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: hanscees on September 01, 2006, 11:10:19 PM

Title: stop many emails form cron
Post by: hanscees 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
Title: stop many emails form cron
Post by: Jean-Philippe Pialasse 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
Title: stop many emails form cron
Post by: hanscees 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