Commit 5104a4c0 authored by Ivan Tyagov's avatar Ivan Tyagov

More robust code.

parent b17d5987
......@@ -9,7 +9,7 @@ port=20000
for pid in $ZOPE_PIDS;
do
ip_port="$(netstat -lpn | grep $pid |awk '{print substr($0, 21, 17);}')";
ip_port="$(netstat -lpn --inet --inet6 | grep $pid/ |awk '{print substr($0, 21, 17);}')";
#echo $pid, $ip_port, $port
# socat
......@@ -26,4 +26,4 @@ for pid in $ZOPE_PIDS;
# increase port base
port=$((port+1))
done
\ No newline at end of file
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment