Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Dec 2000 17:30:03 -0800 (PST)
From:      Brian Somers <brian@Awfulhak.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/23415: /etc/security fails to show all relevant messages. 
Message-ID:  <200012110130.eBB1U3g67303@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/23415; it has been noted by GNATS.

From: Brian Somers <brian@Awfulhak.org>
To: phk@critter.freebsd.dk
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, brian@Awfulhak.org
Subject: Re: bin/23415: /etc/security fails to show all relevant messages. 
Date: Mon, 11 Dec 2000 01:24:01 +0000

 > >Number:         23415
 > >Category:       bin
 > >Synopsis:       /etc/security fails to show all relevant messages.
 [.....]
 > 	I think the catmsgs() function:
 > 		catmsgs() {
 > 		  [ -f $LOG/messages.0.gz ] && zcat $LOG/messages.0.gz
 > 		  [ -f $LOG/messages.0 ] && cat $LOG/messages.0
 > 		  [ -f $LOG/messages ] && cat $LOG/messages
 > 		}
 > 	maybe should do something like:
 > =
 
 > 		catmsgs() {
 > 		 find $LOG/ -name 'messages.*' -mtime -2 -print | =
 
 > 		    sort -r |
 > 		    xargs zcat -f
 > 		 [ -f $LOG/messages ] && cat $LOG/messages
 > 		}
 
 This could be sorted better - messages.10* would be out of place :o]
 
 -- =
 
 Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org=
 >
       <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org=
 >
 Don't _EVER_ lose your sense of humour !
 
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012110130.eBB1U3g67303>