multiplex-server.sh 164 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh

# Usage: multiplex-server.sh <port> <base-path>

echo $2/iperf -s -p $1 '&'
$2/iperf -s -p $1 &
IPERFPID=$!

trap "sudo kill $IPERFPID" EXIT
wait
exit 0