diff --git a/scripts/srvstatus b/scripts/srvstatus index 5642308..b0fe0bf 100755 --- a/scripts/srvstatus +++ b/scripts/srvstatus @@ -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/....$//'