随笔分类 -  shell

摘要:#!/bin/bashworkdir="/data/opr/clean_account"hostslist="/data/opr/clean_account/hosts"ip=`cat /data/opr/clean_account/hosts`password=123456eval `ssh-ag 阅读全文
posted @ 2020-07-16 10:05 litton888 阅读(845) 评论(0) 推荐(0)
摘要:#!/bin/bashIP_LIST=$(cat /root/iplist)for i in ${IP_LIST}doping=`ping -c 3 -i 0.2 -w 1 $i > /dev/null`if [ $? -eq 0 ];then echo "host $i up"else echo 阅读全文
posted @ 2020-05-14 14:04 litton888 阅读(285) 评论(0) 推荐(0)