包含标签:shell 的文章
-
web-shell编程之实时监控IP存活
#!/bin/bash # ping函数 myping(){ ping -c 2 -i 0.3 -W 1 $1 &>/dev/null if [ $? -eq 0 ];then echo "$1 is up" >> 1.txt else echo "$1 is down" >> 1.txt fi } fo……
MrZ 2023-10-25
85 0 0
#!/bin/bash # ping函数 myping(){ ping -c 2 -i 0.3 -W 1 $1 &>/dev/null if [ $? -eq 0 ];then echo "$1 is up" >> 1.txt else echo "$1 is down" >> 1.txt fi } fo……