From de20339351f104f3931af40ad1fc8ac2145f8997 Mon Sep 17 00:00:00 2001 From: Michel Blockelet Date: Mon, 28 Jul 2008 07:06:20 +0200 Subject: [PATCH] On ne compte pas respbats (sauf si on a plus de 2 lignes) darcs-hash:20080728050620-ddb99-90f2a84d6539acc99b2f2744a687c13992de629b.gz --- surveillance/debris | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/surveillance/debris b/surveillance/debris index 391a8d0f..0efeb044 100755 --- a/surveillance/debris +++ b/surveillance/debris @@ -14,7 +14,13 @@ then fi (for i in $( getent passwd | awk -F ":" '{ print $3 }' | sort | uniq -c | awk '$1 > 1 { print $2 }' ) - do getent passwd | awk -F ":" '$3 == "'$i'"' + do if [ $i -eq 120 ] #Respbats + then l=`getent passwd | awk -F ":" '$3 == "120"'` + if [ `echo "$l" | wc -l` -gt 2 ] + then echo "$l" + fi + else getent passwd | awk -F ":" '$3 == "'$i'"' + fi done) > $TMPFILE if [ -s $TMPFILE ] then