Revision 2ea7698ff7e59d1867a9ea1375c95e75e00ae1a6

HW/Radiation/Monitoring/Fluke451P/sandbox/SingleMeasurement.bash

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Just to train the strange Fluke:
echo -ne " "|netcat -w 10 192.168.2.249 10001;sleep 3s;echo -ne " "|netcat -w 10 192.168.2.249 10001; sleep 3s
# and go on ...
echo Start the measurement ...
echo -ne "T"|netcat -w 10 192.168.2.249 10001
for i in `seq 1 $1`; do sleep 10; echo $i x 10s/$1; done # wait to integrate dose in tens of seconds ..
echo Stopping the measurement
for i in `seq 1 30`; do echo -ne " "|netcat -w 10 192.168.2.249 10001; sleep 0.3;done
sleep 5s # just to wait
echo Reading and logging it ...
date|tr '\n' ' '|tee -a GlobalLog;echo -ne ':::'$1' x 10s::: '|tee -a GlobalLog;echo -ne "F"|netcat -w 1 192.168.2.249 10001;netcat -w 3 192.168.2.249 10001|grep Sieverts|tee -a GlobalLog
sleep 5s # just to wait
echo -ne "X"|netcat -w 1 192.168.2.249 10001;socat -T 60 -u TCP:192.168.2.249:10001 STDOUT > Log`date '+%d%m%y%H%M%S'`