Skip to content

Instantly share code, notes, and snippets.

@pingud98
Created July 21, 2015 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pingud98/c08e2f1a43615fdb1ef2 to your computer and use it in GitHub Desktop.
Save pingud98/c08e2f1a43615fdb1ef2 to your computer and use it in GitHub Desktop.
Shell script for simultaneous data logging from two USB serial arduino's
#!/bin/sh
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