1

ping script

view story
linux-howto

http://www.unix.com – hello fellows, I need help with a script, I'm using this one Code: HOSTS="192.168.10.9 192.168.10.15 "  SUBJECT="Attention - Gateway San Martin DOWN " COUNT=1 EMAILID="[email protected]" for myHost in $HOSTS do           count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')           if [ $count -eq 0 ]; then                 echo "the host $myHost is DOWN. Date:  $(date)" | mail -s &quot (HowTos)