This is a discussion on Re: stderr redirect order in afterboot(8) within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Not if you want errors to be mailed to root... Regards, Andreas On 25/04/07, Charles Longeau <chl@tuxfamily.org> wrote: > ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Not if you want errors to be mailed to root... Regards, Andreas On 25/04/07, Charles Longeau <chl@tuxfamily.org> wrote: > Hi, > > I think there's an error in the order 2>&1 is done in the afterboot man page. > > Best regards, > > Charles Longeau > > Index: man/man8/afterboot.8 > ================================================== ================= > RCS file: /cvs/src/share/man/man8/afterboot.8,v > retrieving revision 1.117 > diff -u -p -r1.117 afterboot.8 > --- man/man8/afterboot.8 8 Apr 2007 16:32:30 -0000 1.117 > +++ man/man8/afterboot.8 24 Apr 2007 20:53:29 -0000 > @@ -533,9 +533,9 @@ the security scripts that are mailed int > .Ic crontab -e > and change some of the lines to read: > .Bd -literal -offset indent > -30 1 * * * /bin/sh /etc/daily 2>&1 > /var/log/daily.out > -30 3 * * 6 /bin/sh /etc/weekly 2>&1 > /var/log/weekly.out > -30 5 1 * * /bin/sh /etc/monthly 2>&1 > /var/log/monthly.out > +30 1 * * * /bin/sh /etc/daily > /var/log/daily.out 2>&1 > +30 3 * * 6 /bin/sh /etc/weekly > /var/log/weekly.out 2>&1 > +30 5 1 * * /bin/sh /etc/monthly > /var/log/monthly.out 2>&1 > .Ed > .Pp > See > > -- Andreas Kahari Somewhere in the general Cambridge area, UK |