Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#!/bin/bash
CODE=`wget --server-response http://localhost:8280/services/EchoProxy 2>&1 | awk '/^  HTTP/{print $2}'`;
[ ${CODE} == "200" ] && exit 0 || exit 1

The above scrip either script returns 0 when the HTTP response code is 200 or else it returns 1.

...