Commit 2578905e authored by Matevz Golob's avatar Matevz Golob

Fixed a typo and commented out testing line.

parent 6d911518
...@@ -13,10 +13,10 @@ for pid in $ZOPE_PIDS; ...@@ -13,10 +13,10 @@ for pid in $ZOPE_PIDS;
# remove any trailing character in case PID is less than 5 digits # remove any trailing character in case PID is less than 5 digits
pid="$(echo ${pid} | sed 's/,//')" pid="$(echo ${pid} | sed 's/,//')"
ip_port="$(netstat -lpn --inet --inet6 | 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
if [[ $ip_port == 2001* ]] || [[ $ip_port == fd46*]]; if [[ $ip_port == 2001* ]] || [[ $ip_port == fd46* ]];
then then
ipv6_ip=${ip_port:0:10} ipv6_ip=${ip_port:0:10}
ipv6_port=${ip_port:11:15} ipv6_port=${ip_port:11:15}
......
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