|
|
|
@ -5,7 +5,7 @@ port=$2
|
|
|
|
|
pass=$3
|
|
|
|
|
|
|
|
|
|
if nc -zvw3 $host $port 2>/dev/null; then
|
|
|
|
|
./srvstatus.expect $host $port $pass > /tmp/.stat
|
|
|
|
|
./scripts/srvstatus.expect $host $port $pass > /tmp/.stat
|
|
|
|
|
grep -B1 -A8 Empyrion\ dedicated\ server /tmp/.stat | egrep -v Playfield\|Game\ seed
|
|
|
|
|
printf "\nOnline players:\n- - - - - - - - - - - - -"
|
|
|
|
|
sed -n '/Global\ online/,/Global\ players/p' /tmp/.stat | awk -F\= '{print $3}' | sed 's/....$//'
|
|
|
|
|