Linux 同时在多个服务器中执行命令

来源:互联网 发布:sql中日期怎么定义 编辑:程序博客网 时间:2024/05/27 01:22
#!/bin/bashif [ $# -lt 1 ]; then  echo no args  exit;fiecho ----xcall $arg1 from localhost----$@echofor((i=2;i<=3;i++));do  echo ----xcall $arg1 from centos$i ----;  ssh centos$i $@  echodone
原创粉丝点击