#!/bin/bash export SITE=$1 wget --quiet -O /dev/null http://$SITE if [ $? -ne "0" ] then exit 1 else exit 0 fi