From owner-freebsd-bugs Mon May 6 14:10:20 2002 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 6854137B40D for ; Mon, 6 May 2002 14:10:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g46LA3R24165; Mon, 6 May 2002 14:10:03 -0700 (PDT) (envelope-from gnats) Date: Mon, 6 May 2002 14:10:03 -0700 (PDT) Message-Id: <200205062110.g46LA3R24165@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Scott Lambert Subject: Re: misc/23766: /etc/periodic/daily/440.status-mailq does not produce output when daily_status_mailq_shorten="YES" is specified Reply-To: Scott Lambert Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/23766; it has been noted by GNATS. From: Scott Lambert To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: misc/23766: /etc/periodic/daily/440.status-mailq does not produce output when daily_status_mailq_shorten="YES" is specified Date: Mon, 6 May 2002 17:03:07 -0400 Ok, so this still hasn't seen action. I've left the job were it was an issue for me and gotten a new job where it is again an issue. Here is an updated patch against the current -STABLE version of /etc/periodic/daily/444.status-mailq. I've left out the additional control over how many entries have to be listed before a line is printed as that may have been what kept the last patch from being committed. --- etc/periodic/daily/440.status-mailq.orig Mon May 6 16:45:05 2002 +++ etc/periodic/daily/440.status-mailq Mon May 6 16:47:16 2002 @@ -29,7 +29,8 @@ sort | uniq -c | sort -nr | - awk '$1 > 1 {print $1, $2}');; + awk '$1 > 1 {print $1, $2}'); + echo "$rc";; *) mailq;; esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l) @@ -49,7 +50,8 @@ sort | uniq -c | sort -nr | - awk '$1 > 1 {print $1, $2}');; + awk '$1 > 1 {print $1, $2}'); + echo "$rc";; *) mailq -Ac;; esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l) -- Scott Lambert KC5MLE System Administrator scott@inch.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message