To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 49c2e8df authored by remartin's avatar remartin
Browse files

Moved the eavesdropper: a simple stethoscope.

parent b501701e
echo 'Eavesdropper in position. Which ttyACM port to listen to?'
read port
echo Started listening to serial port \/ttyACM$port.
stty -F /dev/ttyACM$port 9600 #other Arduino messes with baud rate, it seems.
echo 'A new log: ' > eavesDroppingLog.txt
cat -v < /dev/ttyACM$port |& tee -a eavesDroppingLog.txt
# lsusb
# dmesg | grep tty
# udevadm info --name=/dev/ttyACM0 | grep STMicroelectronics
#some trick:
#ls /dev/ > dev_list_1.txt
#while sleep 1 ; do clear ; ls /dev/ | diff --suppress-common-lines -y - dev_list_1.txt ; done
# || visible in terminal || visible in file || existing
# Syntax || StdOut | StdErr || StdOut | StdErr || file
#==========++==========+==========++==========+==========++===========
# > || no | yes || yes | no || overwrite
# >> || no | yes || yes | no || append
# || | || | ||
# 2> || yes | no || no | yes || overwrite
# 2>> || yes | no || no | yes || append
# || | || | ||
# &> || no | no || yes | yes || overwrite
# &>> || no | no || yes | yes || append
# || | || | ||
# | tee || yes | yes || yes | no || overwrite
# | tee -a || yes | yes || yes | no || append
# || | || | ||
# n.e. (*) || yes | yes || no | yes || overwrite
# n.e. (*) || yes | yes || no | yes || append
# || | || | ||
#|& tee || yes | yes || yes | yes || overwrite
#|& tee -a || yes | yes || yes | yes || append
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment