X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=research%2FTCS%2Fpressure%2Fget_pressure.sh;h=83f0d7b258f2fa4b97ac3604bd55f835fb19d239;hb=6529f76db3022ec72ca7718d5e2bc3f176b474e9;hp=55c4fdf4e793ae514f52cf5e52d391ce1ac987f7;hpb=cd8ccddc169cf4b96e30e55c0eb69f5dd3c1c324;p=matches%2Fhonours.git diff --git a/research/TCS/pressure/get_pressure.sh b/research/TCS/pressure/get_pressure.sh index 55c4fdf4..83f0d7b2 100755 --- a/research/TCS/pressure/get_pressure.sh +++ b/research/TCS/pressure/get_pressure.sh @@ -14,6 +14,17 @@ if [ "$1" != "" ]; then eog $imgdir/$name fi -$process_digits $imgdir/$name +out=$($process_digits $imgdir/$name) -rm -f $imgdir/$name +count=0 +while [ "$out" == "?" ]; do + sleep 1 + out=$($process_digits $imgdir/$name) + count=$(( $count + 1 )) + if [ "$count" == "5" ]; then + echo "#?" + exit 0 + fi +done +#rm -f $imgdir/$name +echo $out