linux shell脚本写一个PING主机命令
发布网友
发布时间:2022-04-29 16:57
我来回答
共1个回答
热心网友
时间:2023-10-21 02:38
while true
do
if [ `ping -c 1 192.168.0.2|grep 100%|wc -l` -ne 0 ];then
echo diaoxian_192.168.0.2 >>log2
fi
done
热心网友
时间:2023-10-21 02:38
while true
do
if [ `ping -c 1 192.168.0.2|grep 100%|wc -l` -ne 0 ];then
echo diaoxian_192.168.0.2 >>log2
fi
done
热心网友
时间:2023-10-21 02:38
while true
do
if [ `ping -c 1 192.168.0.2|grep 100%|wc -l` -ne 0 ];then
echo diaoxian_192.168.0.2 >>log2
fi
done