SLBR/servers/scoreboard.sh

11 lines
210 B
Bash
Executable File

#!/bin/sh
PORT="$1"
[ -z "$1" ] && echo "port?" && exit
echo "scoreboard server listening on $PORT"
while true
do
cat scoreboard.txt \
| nc -w 1 -W 1 -lp "$PORT"
echo "Got scoreboard request."
done