摘要: 1、host.info文件格式 IP 用户名 端口号 密码 2、脚本 #! /bin/bash COMMAND=$* HOST_INFO=host.info for IP in $(awk '/^[^#]/{print $1}' $HOST_INFO);do USER=$(awk -v ip=$IP 阅读全文
posted @ 2022-08-21 23:00 CiscoLee 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #获得访问状态码 #! /bin/bash URL_LIST="baidu.com ali.com" for URL in $URL_LIST;do FAIL_COUNT=0 for ((i=1;i<=3;i++));do HTTP_CODE=$(curl -o /de/dev/null --con 阅读全文
posted @ 2022-08-21 22:36 CiscoLee 阅读(116) 评论(0) 推荐(0) 编辑