Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Shell script for simultaneous data logging from two USB serial arduino's
now=$(date +"%m_%d_%Y_%H_%M_%S")
echo "Start time"
echo $now
cat /dev/ttyACM0 > chanA_$now.csv &
cat /dev/ttyACM1 > chanB_$now.csv &
echo "Logging script running"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment