runall.sh (353B)
1 #!/usr/bin/env bash 2 function pwait() { 3 while [ $(jobs -p | wc -l) -ge $1 ]; do 4 sleep 1 5 done 6 } 7 for account in `grep entry accounts.xml | awk -F '"' '{print $2}'`; do 8 server=$(echo $account | awk -F '@' '{print $2}') 9 echo "testing $server" 10 java -jar target/ComplianceTester-0.2.3.jar $account > reports/$server.txt& 11 pwait 5 12 done; 13