wlanboy

tutorials and ruby scripts

Read my tutorials

Read my gists

Gist

Gist: virtual-console

socat -d -d pty,raw,echo=0 pty,raw,echo=0
#socat[32372] N PTY is /dev/pts/5
#socat[32372] N PTY is /dev/pts/6
#socat[32372] N starting data transfer loop with FDs [5,5] and [7,7]

#console1
cat < /dev/pts/5

#console2
echo "Hello world" > /dev/pts/6