CAMERA=192.168.2.199 PORT=2044 #initialization PORT2=2045 #commands #GetPlasma=`cat ../../../basicdiagn/Plasma` #GetShot=`cat ../../../ShotNo` #GetShot=`cat ShotNo` session: if ping -c1 -w1 $(CAMERA) > /dev/null ;\ then\ echo PREPARE | nc $(CAMERA) $(PORT) -q 0 2>> /dev/null > /dev/null ;\ #signal for CAMERA to prepare fi endsession: echo 0 | nc $(CAMERA) $(PORT2) -q 0 2>>/dev/null arming: echo "Activating high-speed cameras"|tee -a /home/svoboda/GOLEM/web/roperation/RemoteTokamak/actions.log if ping -c1 -w1 $(CAMERA) > /dev/null ;\ then\ cat /golem/database/velin/generate_dynamic_shots/currentshot/ShotNo | nc $(CAMERA) $(PORT2) -q 0 2>/dev/null ;\ else\ echo COMPUTER FOR CAMERA IS NOT ACCESSIBLE !!!;\ fi acquisition: plots: