#!/bin/bash # Program: # Ping the gateway every 1 minute, if not reply shutdown the server. # History: # 2011-11-15 owen.chen First Release ping 192.168.1.1 -c 1 -w 1 > /dev/null RESPONSE=$? if [ $RESPONSE != 0 ]; then halt fi
* * * * * root /home/admin/script/pollingTiming.sh