#!/bin/bash I=0 N=100 while [ "$I" -lt "$N" ] do php -f ./test.php 127.0.0.1 8890 'time' 10000 10 > ./$I.txt 2>/dev/null & ((I++)) done