#!/bin/bash # # AHA - 20050813 NETCAT=/opt/netcat-0.7.1/bin/nc PORT=80 OPTIONS="-z -v" # ... doing initial parameters testing ... if [ -z "$1" ] then echo "hostname missing..." exit 1 fi # ... doing the actual testing ... while [ 0 ] do $NETCAT $OPTIONS $1 $PORT sleep 1 done