批量ping测试脚本
摘要:
通过cat查看文件ipAddress.txt获取单行ip地址,根据if的"不等于"(-ne)条件判断,将返回状态(echo $?)为0表示成功,非0则失败。 1 #! /bin/bash 2 IP_LIST=`cat ipAddress.txt` 3 for i in ${IP_LIST} 4 do 阅读全文
posted @ 2020-03-23 10:13 winecork 阅读(174) 评论(0) 推荐(0) 编辑