摘要: #!/bin/bash #todo:运行前设置主机间SSH信任,将要更新的主机的IP放在mip中 #变量设置 #待更新主机ip存放在mip文件中 if [ ! -f mip ] then echo "mip doesn't exist" exit 1 fi ip=$(cat mip|awk '{print $1}') #远程登陆用户 user="root" #目标文件 tfile="/root... 阅读全文
posted @ 2017-08-03 10:51 QQQnull 阅读(258) 评论(0) 推荐(0) 编辑