use new features of find command, switched to 127.0.0.1 instead of localhost

This commit is contained in:
john30
2016-12-04 17:58:10 +01:00
parent cdbcb4664d
commit 5c0e92c1ee
+3 -3
View File
@@ -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