expect spawn id exp4 not open

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               
spawn rsync -avH --delete /home/dwetl/bin dwetl@10.128.8.151:/home/dwetl/binsending incremental file listbin/bin/ftpgj.logbin/ftpjx.logbin/perl_add_gms.logbin/perl_add_ib.logbin/perl_add_uprr.logbin/runjob_imp_gms.shbin/runjob_perl_ib.shbin/20120426/bin/20120427/bin/20120615/sent 62027 bytes  received 523 bytes  41700.00 bytes/sectotal size is 928342848  speedup is 14841.61expect: spawn id exp4 not open    while executing"expect "*""spawn rsync -avH --delete /home/dwetl/sbin dwetl@10.128.8.151:/home/dwetl/sbinsending incremental file listsbin/cust.txtsbin/date.txtsbin/jkall.logsbin/jksuccess.logsbin/tmp.txtsbin/tmp1.txtsent 106870 bytes  received 511 bytes  214762.00 bytes/sectotal size is 1976832  speedup is 18.41expect: spawn id exp4 not open    while executing"expect "*""spawn rsync -avH --delete /home/dwetl/perl_script dwetl@10.128.8.151:/home/dwetl/perl_scriptsending incremental file listsent 22952 bytes  received 26 bytes  15318.67 bytes/sectotal size is 746771078  speedup is 32499.39expect: spawn id exp4 not open    while executing"expect "*""仓库DB-ORACLE /home/dwetl/bin$ sh /home/dwetl/bin/rsync_dwetl.shspawn rsync -avH --delete /home/dwetl/bin dwetl@10.128.8.151:/home/dwetl/bindwetl@10.128.8.151's password: sending incremental file listsent 15637 bytes  received 81 bytes  10478.67 bytes/sectotal size is 928342848  speedup is 59062.40spawn rsync -avH --delete /home/dwetl/sbin dwetl@10.128.8.151:/home/dwetl/sbindwetl@10.128.8.151's password: sending incremental file listsent 2046 bytes  received 13 bytes  4118.00 bytes/sectotal size is 1976832  speedup is 960.09spawn rsync -avH --delete /home/dwetl/perl_script dwetl@10.128.8.151:/home/dwetl/perl_scriptdwetl@10.128.8.151's password: sending incremental file listsent 22952 bytes  received 26 bytes  15318.67 bytes/sectotal size is 746771078  speedup is 32499.39#################################################################################################expect: spawn id exp4 not open    while executing"expect "*""原因:10.128.8.151上配置了SSH 用户等效性 移走即可查到了一个明确的解释:Figured out why. I had generated ssh keys and copied it on to the destination machine. So there was no "Password: " prompt. Hence before send could complete, the ssh connection had closed. I deleted the ssh keys from the destination machine and ran the script again and observed no issues.(解释链接:http://stackoverflow.com/questions/1387848/issues-with-expect-send-spawn-id-exp4-not-open) 

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
这里写图片描述
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值