Skip to content

Instantly share code, notes, and snippets.

@ytakano
Last active December 3, 2016 18:11
Show Gist options
  • Save ytakano/ab921bd1443d25a15abb303bebb21e3d to your computer and use it in GitHub Desktop.
Save ytakano/ab921bd1443d25a15abb303bebb21e3d to your computer and use it in GitHub Desktop.
!#/bin/sh
for i in `seq 0 15`
do
PORT=`expr $i + 10000`
echo socat TCP-LISTEN:$PORT,reuseaddr,fork UNIX-CLIENT:/tmp/sf-tap/tcp/http$i
socat TCP-LISTEN:$PORT,reuseaddr,fork UNIX-CLIENT:/tmp/sf-tap/tcp/http$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment