Changed grep statement to acually work with qstat
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
HOST=$1
|
HOST=$1
|
||||||
PORT=$2
|
PORT=$2
|
||||||
STATE=`quakestat -default q2s ${HOST}:${PORT} | grep "q2"`
|
STATE=`quakestat -u -default q2s ${HOST}:${PORT} | grep "${HOST}"`
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
printf "${PORT} - OK\n"
|
printf "${PORT} - OK\n"
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user