I have an Arduino connected to my Pi and it seems to be working as expected. If I run the Arduino IDE and use the serial monitor pointed to /dev/ttyACM0 I see the data expected.
If I try to cat /dev/ttyACM0 I also see some data however it immediately returns to the command prompt instead of staying open and showing continued serial data.
This brings me to my question: How can I redirect the serial output to a file? On the beaglebone and other linux boxes I simply cat /dev/ttyACM0 >> /home/blah/serial.log then I can use tail to get the most recent data for use by scripts/posting to Cosm, etc from the serial.log file. On the Pi this does not work...it creates the file but immediately closes.
Thanks all