- Install
sudo apt-get install socat
- Create two virtual serial ports
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0 2012/05/31 12:41:56 socat[28162] N PTY is /dev/pts/6 2012/05/31 12:41:56 socat[28162] N PTY is /dev/pts/7 2012/05/31 12:41:56 socat[28162] N starting data transfer loop with FDs [3,3] and [5,5]
- Terminal 1:
cat < /dev/pts/6
- Terminal 2
echo "hello" > /dev/pts/7
0 comments:
Post a Comment