if(widgetStylesPrinted != true) {document.write('');}var widgetStylesPrinted = true;var content = '
make snapshot & press enter on failure
bash
  1. #!/bin/bash
  2.  
  3. COUNTER=1
  4. while [ $COUNTER == 1 ]; do
  5.  
  6. ERGEBNIS=`uvccapture -x960 -y720 && convert -crop 400x30+280+360 snap.jpg error_crop.jpg && mogrify -colorspace Gray error_crop.jpg && mogrify -negate error_crop.jpg && mogrify -sharpen 1x2 error_crop.jpg && gocr -l 90 -c Filenotudf error_crop.jpg | grep -ic " not "`
  7.  
  8. if [ $ERGEBNIS == 1 ]; then
  9. echo "gefunden"
  10. cp snap.jpg /home/support/fehler/`date +%d.%m.%Y-%H:%M:%S`.jpg
  11. ./NeXTTool /COM=usb -run=touch_enter.rxe
  12. else
  13. echo "nicht gefunden"
  14. fi
  15.  
  16. echo "*"
  17. sleep 10
  18.  
  19. done
';document.write(content);