summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-05-07 13:11:05 +0000
committerbrian <brian@FreeBSD.org>2002-05-07 13:11:05 +0000
commit79d9fd6c1335f30dfd14df0e9dabb7268a8dcdde (patch)
tree6094f8391144691d314ba74436fe7416a471a3e0 /etc/periodic
parent87ffeeba8ef8aefeffe3bd992e8c4e89383b9ffa (diff)
downloadFreeBSD-src-79d9fd6c1335f30dfd14df0e9dabb7268a8dcdde.zip
FreeBSD-src-79d9fd6c1335f30dfd14df0e9dabb7268a8dcdde.tar.gz
Fix the output when daily_status_mailq_shorten is set to YES
PR: 23766 Mostly submitted by: lambert@ssabsd.csw.net MFC after: 3 days
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/440.status-mailq8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/periodic/daily/440.status-mailq b/etc/periodic/daily/440.status-mailq
index b75b470..90869d8 100755
--- a/etc/periodic/daily/440.status-mailq
+++ b/etc/periodic/daily/440.status-mailq
@@ -24,12 +24,12 @@ case "$daily_status_mailq_enable" in
rc=$(case "$daily_status_mailq_shorten" in
[Yy][Ee][Ss])
- rc=$(mailq |
+ mailq |
perl -ne 'print if /^\s+\S+@/' |
sort |
uniq -c |
sort -nr |
- awk '$1 > 1 {print $1, $2}');;
+ awk '$1 > 1 {print $1, $2}';;
*)
mailq;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
@@ -44,12 +44,12 @@ case "$daily_status_mailq_enable" in
rc=$(case "$daily_status_mailq_shorten" in
[Yy][Ee][Ss])
- rc=$(mailq -Ac |
+ mailq -Ac |
perl -ne 'print if /^\s+\S+@/' |
sort |
uniq -c |
sort -nr |
- awk '$1 > 1 {print $1, $2}');;
+ awk '$1 > 1 {print $1, $2}';;
*)
mailq -Ac;;
esac | tee /dev/stderr | fgrep -v 'mqueue is empty' | wc -l)
OpenPOWER on IntegriCloud