上传文件至 /
This commit is contained in:
parent
3acf5eaadd
commit
ad2e51433c
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/bash
|
||||
#
|
||||
#by fuxiaoshun 4/2
|
||||
ip=1.92.66
|
||||
for i in {1..10}
|
||||
do
|
||||
|
||||
ping -c1 $ip &>/dev/null
|
||||
if [ $? -eq 0 ];then
|
||||
echo "$ip.$i通" >>/tmp/up.txt
|
||||
else
|
||||
echo "$ip.$i不通" >>/tmp/down.txt
|
||||
fi
|
||||
|
||||
done
|
Loading…
Reference in New Issue