日期:2014-05-16  浏览次数:20562 次

两台Linux之间的数据复制

#!/usr/bin/expect -f

spawn ?scp -r -P 端口号 remote@www.abc.com:/file/ ?/file(从远程复制下来,上传的话只要位置颠倒一下就可以了)

set timeout 100

expect "password:"

send "123344\n";

interact