'Listening-in tty in Linux
I try to find an easy way to listen to the exchange with the desired tty in Linux. A have hardware device whose interface is exposed as /dev/ttyAMA0 and some drivers on system interact with it. I want to dump all transfers (or at least in one direction) to uart/file etc. I don't want to change something in it, just duplicate. Is there a simple way to do that?
Solution 1:[1]
Easiest way to do what I want was just use strace. In strace log I found all necessary info.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | acckiitvar |