+ sleep 4
+ emc motion-test.ini
test.sh: line 6: emc: command not found
+ nc localhost 5007
localhost [127.0.0.1] 5007 (?) : Connection refused
+ echo hello EMC mt 1.0
+ wait
+ echo starting to capture data
+ halsampler -t -n 20000
hal_stream_attach: Invalid argument
+ echo finished capturing data
+ exit 0
