View Single Post
Posts: 9 | Thanked: 1 time | Joined on Jan 2010
#214
Originally Posted by x-lette View Post
What do you mean with status? The Webserver (http-Server) can be checked with a wget command. Whether the machine itself is up and running could be tested with a simple ping. For nearly any service running there is a simple tool to check it's status.
status like to see if its running the site, so i could use wget to get the file but how do i signal to the widget if it fails?

i consulted some people and the best i have is this

wget --timeout=10 --tries=1 http://mywebsite/sometestfile.txt
echo "$?"

thats it.

Last edited by TheSov; 2010-03-29 at 17:53.