while truedo if [ `ping -c 1 192.168.0.2|grep 100%|wc -l` -ne 0 ];then echo diaoxian_192.168.0.2 >>log2 fidone