diff --git a/contrib/scripts/readall.sh b/contrib/scripts/readall.sh index 75c06b27..e6e4b3ba 100755 --- a/contrib/scripts/readall.sh +++ b/contrib/scripts/readall.sh @@ -5,7 +5,13 @@ if [ "x$1" = "x-p" ]; then port=$1 shift fi +readargs= +if [ "x$1" = "x-R" ]; then + shift + readargs=$1 + shift +fi for i in `echo "f" "$@"|nc localhost $port|cut -d ' ' -f '1-2'|sed -e 's# #:#'`; do - ret=`echo "r -c" ${i%%:*} ${i##*:}|nc localhost $port|head -n 1` + ret=`echo "r ${readargs} -c" ${i%%:*} ${i##*:}|nc localhost $port|head -n 1` echo ${i%%:*} ${i##*:} "=" $ret done