portListenWait() {
count=0
while [ $count -lt 100 ]; do
tmp_str=`lsof -i:${1}`
if [ "$tmp_str" != "" ]; then
return 0
fi
count=`expr $count + 1`
sleep 1
done
return 1
}


