#!/bin/bash CONCURRENCY=50 NATTEMPS=500 I=0 while [ $I -lt $CONCURRENCY ]; do I=$((I+1)) ./connect.sh $NATTEMPS & done