11 lines
299 B
Bash
11 lines
299 B
Bash
|
# in case the file /tmp/toto was send,
|
||
|
# the connection is closed but the file
|
||
|
# wasn't the one we expect, then the netcat server is relaunch.
|
||
|
# all the output not wanted are cleaned
|
||
|
|
||
|
while [ 1 ]
|
||
|
do
|
||
|
# nc -lv 127.0.0.1 6969 2>/dev/null | grep -v ".*( )*."
|
||
|
nc -lv 127.0.0.1 6969 2>/dev/null
|
||
|
done
|