Thursday, January 28, 2010

Linux ping is it up?

if test 1 -eq `ping -q -c 1 ip.add.ress | grep "loss" | cut -d " " -f 4`; then echo "online"; else echo "offline"; fi

No comments:

Blog Archive