From owner-freebsd-bugs Sun Dec 10 17:30: 5 2000 From owner-freebsd-bugs@FreeBSD.ORG Sun Dec 10 17:30:03 2000 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2A32437B401 for ; Sun, 10 Dec 2000 17:30:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBB1U3g67303; Sun, 10 Dec 2000 17:30:03 -0800 (PST) (envelope-from gnats) Date: Sun, 10 Dec 2000 17:30:03 -0800 (PST) Message-Id: <200012110130.eBB1U3g67303@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Brian Somers Subject: Re: bin/23415: /etc/security fails to show all relevant messages. Reply-To: Brian Somers Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/23415; it has been noted by GNATS. From: Brian Somers 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 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