Linux.com

Just the tool I was looking for

Posted by: Anonymous Coward on March 28, 2007 01:54 AM
I spent a few hours looking for a toll which would allow me to tie two tty devices together. The goal here is to have two devices connected to the serial ports talk transparently to each other.

I tried some interesting things with cat, tail, netcat, etc... But they all gave me different problems.

1. Text is echoed locally and set back from the serial device.
2. Text is only sent by the line, and not by character.

Here is the socat command I used:
socat<nobr> <wbr></nobr>/dev/ttyS44,raw,echo=0,crnl<nobr> <wbr></nobr>/dev/ttyS45,raw,echo=0,crnl

#

Return to CLI Magic: socat