Linux operating system (and alike) allows the user to easily and quickly redirect output (like output of {{fname|cat /dev/ttyACM1}}) to a file.
+
+
Key-in the following command:
+
+
<nowiki>cat /dev/ttyACM1 > log.txt</nowiki>
+
+
will instantly redirect everything coming from '/dev/ttyACM1' to the file 'log.txt' .
+
+
Press CTRL+C to stop 'cat' and the redirection. The file 'log.txt' is now fully available for data treatment. A [https://github.com/mchobby/cansat-belgium-micropython/blob/main/mission1/cansat2.py log.txt sample] is available from the GitHub repository.