I am running an application that communicates through a real serial port
e.g. /dev/ttyS0to a remote device. I can configure this application to use
/dev/ttyS1, etc., by passing the numeric suffix to the program, not the fully-qualified name.
I would like to sniff the traffic going through this serial port using something like
jpnevulatoropens a pseudo-terminal to which the application to be monitored is supposed to connect.
Is there any way to re-assign the name of the ports, for example
/dev/ttyS1 to an actual pseudo-terminal such as
/dev/pty/23, so that the application transparently connects to
/dev/ttyS1? Would a file link
ln achieve this?