#! /bin/bash
while true; do
ping -c 1 131.252.210.176
if [ $? -ne 0 ]; then
echo "$(date)" >> "ping_failures.log"
fi
sleep 1
done
