wget --timeout=10 -O /dev/null http://theserveruwanttocheck.xxx/somefile.html if [ $? -eq 1 ] ; then exit 2 ; fi echo "System OK"