#!/bin/bash while true do olddat="$newdat" newdat=`devmem 0x40100000 32` if [ "$newdat" != "$olddat" ] then echo $newdat echo $newdat >>muons.txt fi usleep 500000 #0.5 s done #ssh -i ./muid root@iphcip15.physik.uni-mainz.de #scp -i ./muid mudaq.sh root@iphcip15.physik.uni-mainz.de: