better looping
This commit is contained in:
parent
59ca629792
commit
47b14a6e20
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue