#!/bin/sh

# Some host from google.com, but it's not important.
ip="66.249.91.147"

log="$HOME/public_html/personal/connver/connver.log"
delay=60
hops=4

echo `date`: $0 started. >> $log
while /bin/true; do
  i=1
  while [ $i -le $hops ]; do
    if ! `ping -c 1 -t $i $ip | grep "+1 errors" > /dev/null`; then
      echo `date` No reply from hop $i >> $log
    fi
    i=$((i + 1))
  done
  sleep $delay
done

