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
How to Find The List of Processes Using a Particular Kernel Module
How to Search for a Particular String from a .Gz File
Why Kernel Needs Virtual Addressing
Linux: How to Lock The Pages of a Process in Memory
Grep for Text with Wild Card in Between
What's The Difference Between Insmod and Modprobe
How to Find Out What Program's on The Other End of a Local Socket
Sed Regex Problem on Mac, Works Fine on Linux
Set Docker Image Username at Container Creation Time
Can Upstart Expect/Respawn Be Used on Processes That Fork More Than Twice
Bash Command That Prints a Message on Stderr
Can Multiple .Gz Files Be Combined Such That They Extract into a Single File
How to Give File Permission to a Specific User in a Group
Rpm Installation Fails Due to Depencency /Bin/Sh Not Found
File Format Differences Between a Static Library (.A) and a Shared Library (.So)