From 5c0e92c1ee5c6acc16e2d691f1356621b6cea094 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 4 Dec 2016 17:58:10 +0100 Subject: [PATCH] use new features of find command, switched to 127.0.0.1 instead of localhost --- contrib/scripts/readall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/scripts/readall.sh b/contrib/scripts/readall.sh index e6e4b3ba..3d1a1bb3 100755 --- a/contrib/scripts/readall.sh +++ b/contrib/scripts/readall.sh @@ -11,7 +11,7 @@ if [ "x$1" = "x-R" ]; then readargs=$1 shift fi -for i in `echo "f" "$@"|nc localhost $port|cut -d ' ' -f '1-2'|sed -e 's# #:#'`; do - ret=`echo "r ${readargs} -c" ${i%%:*} ${i##*:}|nc localhost $port|head -n 1` - echo ${i%%:*} ${i##*:} "=" $ret +for i in `echo "f -F circuit,name" "$@"|nc 127.0.0.1 $port|sort -u|egrep ','`; do + ret=`echo "r ${readargs} -c" ${i%%,*} ${i##*,}|nc 127.0.0.1 $port|head -n 1` + echo ${i%%,*} ${i##*,} "=" $ret done