The methods available to check on the status of a web application will depend partly on the
servlet container. For example, the
Tomcat manager application has some simple commands that will respond to a URL. Your script could access the URL and examine the result.
What is your web application running in?
Bill