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

More robust code.

parent b17d5987
...@@ -9,7 +9,7 @@ port=20000 ...@@ -9,7 +9,7 @@ port=20000
for pid in $ZOPE_PIDS; for pid in $ZOPE_PIDS;
do 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 #echo $pid, $ip_port, $port
# socat # socat
...@@ -26,4 +26,4 @@ for pid in $ZOPE_PIDS; ...@@ -26,4 +26,4 @@ for pid in $ZOPE_PIDS;
# increase port base # increase port base
port=$((port+1)) port=$((port+1))
done done
\ No newline at end of file
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