Hi Rene, Rene Maroufi wrote on Thu, Oct 22, 2009 at 09:20:43AM +0200:
> I don't want the output of the daily script mailed. > In man afterboot (section crontab) is an example to write the output > in /var/log/daily.out, but this example doesn't work in 4.6. > I used this always and it was no problem in 4.5, but in 4.6 > I get always mails. Oops. I overlooked that reference when changing daily(8). > Is this a documentation bug in man afterboot Yes. The afterboot(8) manual is now wrong indeed. Sorry. I will soon prepare a fix. > or a bug of the daily script and how can i turn the mails off? Very probably, setting VERBOSESTATUS=0 in /etc/daily.local is all you want, see daily(8) for details. Actually, "do not send mail when there is nothing important to tell" was the main idea of my changes. In case you literally never want any mail from daily(8) - but i do not recommend taking that route - you now need to edit the file /etc/daily. near the very end, look for the lines [ -s $MAINOUT ] && { sysctl -n kern.version uptime cat $MAINOUT } 2>&1 | mail -s "`hostname` daily output" root Comment these, prepending '#' to each line. But again, i rather recommend VERBOSESTATUS=0. Leave the crontab(5) alone unless you want to switch off daily(8) completely, which is definitely NOT recommended. Switching off daily(8) implies switching off security(8). Disabling daily(8) mailings outright works differently in 4.6 compared to 4.5. I think it is rarely needed, if ever. I don't think it has become more difficult. I think cleaning up the "2>&1 | tee |" mess in crontab(5) was worth it. So i guess no code fixes are required right now. Yours, Ingo