随笔分类 - shell
摘要:#!/bin/bashworkdir="/data/opr/clean_account"hostslist="/data/opr/clean_account/hosts"ip=`cat /data/opr/clean_account/hosts`password=123456eval `ssh-ag
阅读全文
摘要:#!/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
阅读全文

浙公网安备 33010602011771号