snow-crash/level10/Ressources/loop_nc.sh

11 lines
299 B
Bash
Raw Permalink Normal View History

2021-01-27 23:31:31 +00:00
# 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