Skip to content

Instantly share code, notes, and snippets.

@brokenpylons
Created February 29, 2024 11:55
Show Gist options
  • Save brokenpylons/06bae4da09cf0e6e64b4d14adfd681c2 to your computer and use it in GitHub Desktop.
Save brokenpylons/06bae4da09cf0e6e64b4d14adfd681c2 to your computer and use it in GitHub Desktop.
mkfifo pipe
trap "rm pipe; exit;" SIGINT SIGTERM
while true
do
./run.sh <(cat pipe | netcat -lvN localhost 8080) >(cat - >pipe)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment