上传文件至 /

This commit is contained in:
xiaoshun 2024-05-30 20:44:37 +08:00
parent 3acf5eaadd
commit ad2e51433c
1 changed files with 15 additions and 0 deletions

View File

@ -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