7 echo "Usage: $0 [options]"
10 echo " -s address Server IP address."
11 echo " -p port Server port number."
12 echo " -h Show this message."
17 #echo "SERVER : $SERVER PORT : $PORT"
18 OUT=`curl -s http://$SERVER:$PORT/ping/$1 | grep PONG`
19 if [ "$OUT" != "PONG" ] ;
25 while getopts ":p:s:h" opt
34 :) ERROR="Option -$OPTARG requires an argument. Aborting..."
36 \?) ERROR="Invalid option: -$OPTARG"
41 if [ -n "$ERROR" ]; then