Skip to content

Instantly share code, notes, and snippets.

@tarhan
Forked from mathieue/socat-tty.sh
Created January 30, 2023 10:08
Show Gist options
  • Save tarhan/0b16fce4b74ee268c833d9d8a425188a to your computer and use it in GitHub Desktop.
Save tarhan/0b16fce4b74ee268c833d9d8a425188a to your computer and use it in GitHub Desktop.
socat read tty serial and provide a server to read serial output
socat -d -d tcp-l:1234,reuseaddr,fork file:/dev/ttyUSB0,nonblock,raw,echo=0,waitlock=/var/run/tty,min=0,b38400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment