aboutsummaryrefslogtreecommitdiff
path: root/tests/tcpsink.sh
blob: 6716bed4858f197ca00f145d933d813c7dfad19d (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

P=$1
PORT=$((P))
if [ ${PORT} -lt 1 ]; then
  echo "usage: $0 <port>" 1>&2
  exit 1
fi

nc -l -p ${PORT} > /dev/null