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

Force closing connections

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