From aa5f07b8940992f7c82be0c1d519a5efbabfe798 Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Sun, 19 Feb 2012 14:11:14 +0000 Subject: [PATCH] correct while loop using lsof --- org.glite.testsuites.ctb/CANL-C/tests/canl-test-sec-connection.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 1.8.2.3