Оповещения на мыло руту
Добавлено: 2008-09-10 9:30:13
Ребят, подскажите пжста в чем проблема может быть: оповещения на мыло руту начали приходит в троекратном количестве. 

Раз не осталось живых, значит мертвые — Встать!
https://forum.lissyara.su/
что?zingel писал(а):поправить или вообще отключить
как!?zingel писал(а):сраньё на мыло
?# Backup
0 1 * * * sh /usr/local/backup/backup.sh > /dev/null
Код: Выделить всё
# Don't mail logs to root
daily_output=/var/log/daily.log
daily_status_security_output=/var/log/secuirity.log
weekly_output=/var/log/weekly.log
monthly_output=/var/log/monthly.log
Спасибо, об этом!Гость писал(а):периодичное сранье на рутовское мыло отключается добавлением в periodic.conf:Или автор о другом?Код: Выделить всё
# Don't mail logs to root daily_output=/var/log/daily.log daily_status_security_output=/var/log/secuirity.log weekly_output=/var/log/weekly.log monthly_output=/var/log/monthly.log
Вопрос частично актуален.Плиз хелп )$Alchemist писал(а):у меня в crontab прописано:
MAIL=/dev/null
но это не работает =\
Так если сделать:?Код: Выделить всё
# Backup 0 1 * * * sh /usr/local/backup/backup.sh [b]> /dev/null
MAILTO="" должен помочь...In addition to LOGNAME, HOME, PATH, and SHELL, cron(8) will look at
MAILTO if it has any reason to send mail as a result of running commands
in ``this'' crontab. If MAILTO is defined (and non-empty), mail is sent
to the user so named. MAILTO may also be used to direct mail to multiple
recipients by seperating recipient users with a comma. If MAILTO is
defined but empty (MAILTO=""), no mail will be sent. Otherwise mail is
sent to the owner of the crontab. This option is useful if you decide on
/bin/mail instead of /usr/lib/sendmail as your mailer when you install
cron -- /bin/mail does not do aliasing, and UUCP usually does not read
its mail.
Грандмерси!terminus писал(а):man 5 crontab
MAILTO="" должен помочь...