原创 expect 腳本同步文件,指定host和要同步的文件,構建文件分發系統,批量遠程執行命令

expect腳本自動同步文件 #!/usr/bin/expectset passwd "1q2w3e"spawn rsync -av [email protected]:/tmp/12.txt /tmp/expect {"yes/no"