Skip to content
Snippets Groups Projects
Verified Commit 1a7b5e3f authored by David Beniamine's avatar David Beniamine
Browse files

Force closing connections

parent 17a90ff3
Branches
No related tags found
No related merge requests found
...@@ -26,5 +26,5 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . - ...@@ -26,5 +26,5 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -
host=$subnet.52 host=$subnet.52
echo $@ | netcat $host $port echo $@ | netcat -N $host $port
stdbuf -i0 -o0 -e0 $netcat stdbuf -i0 -o0 -e0 $netcat
...@@ -25,5 +25,5 @@ KPID=`ps aux | grep "$netcat" | awk '{print $2}'` ...@@ -25,5 +25,5 @@ KPID=`ps aux | grep "$netcat" | awk '{print $2}'`
subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3) subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -f 1-3)
host=$subnet.52 host=$subnet.52
echo "get_registry" | netcat $host $port echo "get_registry" | netcat -N $host $port
stdbuf -i0 $netcat stdbuf -i0 $netcat
...@@ -25,5 +25,5 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . - ...@@ -25,5 +25,5 @@ subnet=$(ip a | awk '/inet.*containers/ {print $2}' | cut -d / -f 1 | cut -d . -
host=$subnet.52 host=$subnet.52
port=9999 port=9999
echo "$1" | netcat $host $port echo "$1" | netcat -N $host $port
$netcat $netcat
...@@ -25,9 +25,9 @@ getip(){ ...@@ -25,9 +25,9 @@ getip(){
answer(){ answer(){
if [ -z "$1" ] if [ -z "$1" ]
then then
netcat $host $port netcat -N $host $port
else else
netcat $host $port < $1 netcat -N $host $port < $1
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment