better looping

This commit is contained in:
sose 2021-06-14 01:01:05 +00:00
parent 59ca629792
commit 47b14a6e20
1 changed files with 1 additions and 3 deletions

View File

@ -2,9 +2,7 @@
PORT="$1"
[ -z "$1" ] && echo "port?" && exit
echo "scoreboard server listening on $PORT"
while true
while (cat scoreboard.txt | nc -w 1 -W 1 -lp "$PORT")
do
cat scoreboard.txt \
| nc -w 1 -W 1 -lp "$PORT"
echo "Got scoreboard request."
done