What does stdout have in it when your script registers a server down condition?
--David [EMAIL PROTECTED] wrote: >Hi all, > >I run a Linux script to check every 5 minutes whether my server is still on: > >#! /bin/bash >while true; do > sleep 300 > `wget http://localhost:8080/myapp/index.jsp -o stdout` > result=`grep -c 'OK' stdout` > if [ $result -eq 0 ]; then > echo "server down" | mail -s "warning:server down" >[EMAIL PROTECTED] > fi > done > >From this script I noticed that my server is not reachable every 70 >minutes. Then, I open a browser and request my application. It still works. > >Could any body please have an explanation for this phenomenon? > >Thanks. > >Gop > > >--------------------------------------------------------------------- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]