两台Linux之间的数据复制
#!/usr/bin/expect -f
spawn ?scp -r -P 端口号 remote@www.abc.com:/file/ ?/file(从远程复制下来,上传的话只要位置颠倒一下就可以了)
set timeout 100
expect "password:"
send "123344\n";
interact
发布时间: 2012-08-03 00:12:14 作者: rapoo
两台Linux之间的数据复制
#!/usr/bin/expect -f
spawn ?scp -r -P 端口号 remote@www.abc.com:/file/ ?/file(从远程复制下来,上传的话只要位置颠倒一下就可以了)
set timeout 100
expect "password:"
send "123344\n";
interact