Merge branch 'master' of git.ucc.asn.au:/matches/honours
[matches/honours.git] / research / TCS / pressure / get_pressure.sh
index 55c4fdf..83f0d7b 100755 (executable)
@@ -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

UCC git Repository :: git.ucc.asn.au