#dir=${1:-"$HOME/Downloads/corr_age/"}


set -x

# Start the unpack captures
ssh m178 "/home/judo/unpack_cmr.py -p 1234 --csv -o /tmp/pp78_cmr.csv > /dev/null &" &
ssh m179 "/home/judo/unpack_cmr.py -p 2101 --csv -o /tmp/eb79_cmr.csv > /dev/null &" &
ssh m9 "sudo /home/judo/unpack_cmr.py -o /tmp/p3_miki_cmr.csv --csv -f /dev/serial/by-function/uhf -b 115200 > /dev/null &" &
#ssh m178 "/home/judo/unpack.sh &" &
#ssh m179 "/home/judo/unpack.sh &" &
#ssh m9 "sudo /home/judo/unpack.sh &" &

# Capture the IQ Data
ssh m178 "nc localhost 6666 > /tmp/pp78_iq.bin &" &
ssh m179 "nc localhost 6666 > /tmp/eb79_iq.bin &" &
#echo "Starting sleep"
#sleep 10
#echo "Sleep Done"
