标签:amp ini func cti dev $? action bin var
#!/bin/bash
. /etc/init.d/functions
for var in {1..254};
do
ip=31.0.140.$var
ping -c2 $ip >/dev/null 2>&1
if [ $? = 0 ];then
action "$ip" /bin/true
else
action "$ip" /bin/false
fi
done
标签:amp ini func cti dev $? action bin var
原文地址:https://blog.51cto.com/13229718/2487774