摘要:
1.上次写了一个脚本我那次考虑不是很周全,这次我将脚本改动了一下,这次是判断三次, 希望关注我的人可以经常交流哈。下面我写上代码。 #!/usr/bin/bash while read ip do fail_count=0 for count in {1..3} do ping -c1 -W1 $i 阅读全文
摘要:
Array实现TCP的链接状态 #!/usr/bin/bash declare -A status type=`ss -an | grep :80|awk '{print $2}'` for i in $type do echo let status[$type]++ done for j in $ 阅读全文