expect脚本同步文件expect脚本指定host和要同步的文件 构建文件分发系统批量远程执行命令...

20.31 expect脚本同步文件 #!/usr/bin/expect set passwd "liang.123" spawn rsync -av [email protected]:/tmp/12.txt /tmp/ 将远程的/tmp/12.txt同步到本地的机器上 expect { "yes/no" { send "yes\r"} 第一次会提示yes或no "password:" { se
相关文章
相关标签/搜索