Using Socat for Raw Serial Connection

Using socat for raw serial connection

As Austin Phillips says, you can use stty sane to recover...

...but what is even better is that you can (probably) append it to your socat command as socat xxxxx ; stty sane and have the recovery be automatic when you quit with ctrl-c.

I am using Socat to open a serial connection to a cisco switch in an Expect script. I am able to log into the switch but expect commands wont work

Backticks are a shell thing, not Tcl/expect. The equivalent in expect would be

spawn socat.exe [exec tty],raw,echo=0 /dev/ttyS4,raw,echo=0,setsid,sane


Related Topics



Leave a reply



Submit