Skip to content

Instantly share code, notes, and snippets.

@superkojiman
Created June 10, 2016 15:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save superkojiman/1e4fb0fc7bf321b722104b9c13523fc9 to your computer and use it in GitHub Desktop.
Save superkojiman/1e4fb0fc7bf321b722104b9c13523fc9 to your computer and use it in GitHub Desktop.
Quick function to run a binary under socat
# Add to .bashrc
# You're welcome
function soocat {
socat tcp-l:${2},reuseaddr,fork EXEC:${1}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment