NUM_CLIENTS=${1:-18} for ((i=1;i<=NUM_CLIENTS;i++)) do ip netns exec c$i .././tiptorrent-client 10.141.10.1 TEST & done wait $(jobs -p)