分享一下我老师大神的人工智能教程!零基础,通俗易懂!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)