X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=sensors%2Fhatch.sh;fp=sensors%2Fhatch.sh;h=6cf75605eb117b44ca364676335b782d260caa47;hb=58117c8ff9148ef0d23397da950e78b28a461921;hp=0000000000000000000000000000000000000000;hpb=e2bb749edf30ce93daf9961c83bf823c37b74950;p=rpi_small diff --git a/sensors/hatch.sh b/sensors/hatch.sh new file mode 100755 index 0000000..6cf7560 --- /dev/null +++ b/sensors/hatch.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +sock=/tmp/oktopus.sock + +rm "$sock" + +( cd "${0%/*}/" + for n in ./sensor_*.sh; do + $n & + done + for n in ekg pulse oxygen heartrate systole diastole; do + ./gummikraken.sh ./gummikraken.data $n & + done +) | teesock "$sock" & + +for n in 1 2 3 4 5 6 7 8 9 0; do [ ! -S "$sock" ] && sleep 1; done +chmod a+rw "$sock"