function usage { echo "$0 [duration(s)] [concurrency]" exit 1 } if [ $# != 2 ] ; then usage exit 1; fi duration=$1 concurrency=$2 f1="1byte_"$concurrency".txt" echo $f1 f2="0.4k_"$concurrency".txt" ./test_8c.sh $f1 $duration $concurrency 1byte_file 10000 2>&1 & pid1=$! ./test_8c.sh $f2 $duration $concurrency 410byte_file 10004 2>&1 & pid4=$! wait -f $pid1 wait -f $pid2 printf "[OK]\n"