#!/bin/bash if [ $# -ne 2 ]; then echo "usage: $0 " exit fi PORT=$1 SOCK=$2 socat -d -d -d -lf ns-socat.log TCP-LISTEN:${PORT},reuseaddr,fork UNIX-CLIENT:${SOCK}