..mi auto rispondo in caso qualcuno dovesse avere lo stesso problema..
Citazione:
pi@raspberrypi:~ $ screen -dmS test
pi@raspberrypi:~ $ screen -r test -p0 -X stuff "mavproxy.py --master=/dev/ttyACM0 --baudrate 57600 --out 192.168.7.57:14550 --aircraft MyCopter"
pi@raspberrypi:~ $ screen -r test -p0 -X stuff "status"
pi@raspberrypi:~ $ screen -r test -p0 -X eval "stuff \015"
pi@raspberrypi:~ $ screen -r test -p0 -X hardcopy -h foglio.txt
pi@raspberrypi:~ $ cat foglio.txt | grep chan8_raw | cut -f3 -d: | cut -f1 -d, | sed '1,${$!d}'
991
pi@raspberrypi:~ $ screen -r test -p0 -X stuff "status"
pi@raspberrypi:~ $ screen -r test -p0 -X eval "stuff \015"
pi@raspberrypi:~ $ screen -r test -p0 -X hardcopy -h foglio.txt
pi@raspberrypi:~ $ cat foglio.txt | grep chan8_raw | cut -f3 -d: | cut -f1 -d, | sed '1,${$!d}'
2015
|