From: Marcel Poul Date: Sun, 19 Feb 2012 14:11:14 +0000 (+0000) Subject: correct while loop using lsof X-Git-Tag: gridsite-core_R_1_7_17~64 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=aa5f07b8940992f7c82be0c1d519a5efbabfe798;p=jra1mw.git correct while loop using lsof --- diff --git a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh index d2fa9e3..3dae776 100755 --- a/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh +++ b/org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh @@ -172,7 +172,8 @@ max_port=11190 ${SYS_LSOF} -i :${nu_port} while [ $? -eq 0 -a ${nu_port} -lt ${max_port} ] do - nu_port=$(( ${nu_port} + 1 )) + nu_port=$((nu_port+1)) + ${SYS_LSOF} -i :${nu_port} done if [ ${nu_port} -ne ${max_port} ]; then ${EMI_CANL_CLIENT} -s localhost -p 11112