"Wesley M.A." <[email protected]> wrote: >Hi > >'man 5 crontab' give : >Command output is mailed to the crontab owner
True but irrelevant here. The daily cronjob and friends shouldn't pass anything on stdout or stderr, but mails it themselves. On the subject, I dont think there is a simple way to quiet it apart from editing the scripts. /Alexander >It is why you have root emails...(root backups are provided from >security scripts (from daily)) > >Cheers, > >Wesley > >Le 2013-02-04 20:03, Peter Bisroev a écrit : >> Hi All, >> >> This is a very minor issue, and I could possibly have missed >> something in the >> documentation since I do not see people asking this question on the >> mailing >> lists. So if someone could point me in the right direction it would >> be really >> appreciated. >> >> I am using OpenBSD 5.2 on a number of hosts, and all works great. I >> have >> daily.local setup as follows: >> >> -------------------------------------------------- >> cat /etc/daily.local >> ROOTBACKUP=1 >> VERBOSESTATUS=0 >> -------------------------------------------------- >> >> Normal daily output is not emailed, however because I do have >> ROOTBACKUP=1 I >> get daily emails about root backups as shown below: >> >> -------------------------------------------------- >> OpenBSD 5.2 (GENERIC.MP) #368: Wed Aug 1 10:04:49 MDT 2012 >> >> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP >> >> 1:31AM up 24 days, 1:40, 0 users, load averages: 0.78, 0.28, 0.15 >> >> Backing up root=/dev/rwd0a to /dev/rwd0d: >> 131527+0 records in >> 131527+0 records out >> 1077469184 bytes transferred in 57.954 secs (18591693 bytes/sec) >> ** /dev/rwd0d >> ** Last Mounted on / >> ** Phase 1 - Check Blocks and Sizes >> ** Phase 2 - Check Pathnames >> ** Phase 3 - Check Connectivity >> ** Phase 4 - Check Reference Counts >> ** Phase 5 - Check Cyl groups >> 1756 files, 26205 used, 490058 free (50 frags, 61251 blocks, 0.0% >> fragmentation) >> >> MARK FILE SYSTEM CLEAN? yes >> >> >> ***** FILE SYSTEM WAS MODIFIED ***** >> -------------------------------------------------- >> >> The reason that I am getting this output makes sense, since the daily > >> manpage >> states: >> >> -------------------------------------------------- >> If set to 0, df(1), dump(8), netstat(1), and ruptime(1) >> are skipped. Consequently, if none of the other >> commands produce any output, no mail will be sent to >> root. >> -------------------------------------------------- >> >> So what would be the correct way to instruct the rootbackup process >> not to >> produce output unless something is wrong? >> >> Thank you! >> --peter

