aboutsummaryrefslogtreecommitdiff
path: root/tests/udpsource.sh
blob: f48cd552cb1823e46edaedf41c477bb31c1111f6 (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

yes abcdefghijklmnopqrstuvwxyz | nc -u localhost ${PORT} > /dev/null