Unix Technical Forum

Re: stderr redirect order in afterboot(8)

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: > ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:21 AM
Andreas Kahari
 
Posts: n/a
Default Re: stderr redirect order in afterboot(8)

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com