CAMERA=192.168.2.199 PORT=2044 #initialization PORT2=2045 #commands GetPlasma=`cat ../../../basicdiagn/Plasma` #GetShot=`cat ../../../ShotNo` GetShot=`cat ShotNo` acquisition: cp /home/svoboda/Fuze/GOLEM/operation/parameters.pl . # make get if [ $(GetPlasma) -eq 1 ];\ then\ make html; \ else\ make html2;\ fi #get: # echo GET | nc $(CAMERA) $(PORT2) -q 0 #send signal to CAMERA # nc -l -w100 -p $(PORT2) > plasma_all-1.png # nc -l -w4 -p $(PORT2) > plasma_red-1.png # nc -l -w4 -p $(PORT2) > plasma_blue-1.png # nc -l -w4 -p $(PORT2) > plasma_green-1.png # # nc -l -w4 -p $(PORT2) > plasma_all-2.png # nc -l -w4 -p $(PORT2) > plasma_red-2.png # nc -l -w4 -p $(PORT2) > plasma_blue-2.png # nc -l -w4 -p $(PORT2) > plasma_green-2.png session: ping -c1 -w1 $(CAMERA) > /dev/null echo PREPARE | nc $(CAMERA) $(PORT) -q 0 >> /dev/null #signal for CAMERA to prepare endsession: echo 0 | nc $(CAMERA) $(PORT2) -q 0 arming: echo $$ShotNo | nc $(CAMERA) $(PORT2) -q 0 #echo $$ShotNo > ShotNo1 #echo $(GetShot) > ShotNo2 plots: #convert -resize 150 $(DATAPATH)$(GetShot)-1/plasma_all.png icon.png #ln -s '/plasma_all.png' icon.png html: chmod go+rw icon.png echo -e \ "\n \ \n \ Golem - CAMERA \n \ References: