spawn rsync -avH --delete /home/dwetl/bin dwetl@10.128.8.151:/home/dwetl/bin
sending incremental file list
bin/
bin/ftpgj.log
bin/ftpjx.log
bin/perl_add_gms.log
bin/perl_add_ib.log
bin/perl_add_uprr.log
bin/runjob_imp_gms.sh
bin/runjob_perl_ib.sh
bin/20120426/
bin/20120427/
bin/20120615/ sent 62027 bytes received 523 bytes 41700.00 bytes/sec
total size is 928342848 speedup is 14841.61
expect: spawn id exp4 not open
while executing
"expect "*""
spawn rsync -avH --delete /home/dwetl/sbin dwetl@10.128.8.151:/home/dwetl/sbin
sending incremental file list
sbin/cust.txt
sbin/date.txt
sbin/jkall.log
sbin/jksuccess.log
sbin/tmp.txt
sbin/tmp1.txt sent 106870 bytes received 511 bytes 214762.00 bytes/sec
total size is 1976832 speedup is 18.41
expect: spawn id exp4 not open
while executing
"expect "*""
spawn rsync -avH --delete /home/dwetl/perl_script dwetl@10.128.8.151:/home/dwetl/perl_script
sending incremental file list sent 22952 bytes received 26 bytes 15318.67 bytes/sec
total size is 746771078 speedup is 32499.39
expect: spawn id exp4 not open
while executing
"expect "*"" 仓库DB-ORACLE /home/dwetl/bin$ sh /home/dwetl/bin/rsync_dwetl.sh
spawn rsync -avH --delete /home/dwetl/bin dwetl@10.128.8.151:/home/dwetl/bin
dwetl@10.128.8.151's password:
sending incremental file list sent 15637 bytes received 81 bytes 10478.67 bytes/sec
total size is 928342848 speedup is 59062.40
spawn rsync -avH --delete /home/dwetl/sbin dwetl@10.128.8.151:/home/dwetl/sbin
dwetl@10.128.8.151's password:
sending incremental file list sent 2046 bytes received 13 bytes 4118.00 bytes/sec
total size is 1976832 speedup is 960.09
spawn rsync -avH --delete /home/dwetl/perl_script dwetl@10.128.8.151:/home/dwetl/perl_script
dwetl@10.128.8.151's password:
sending incremental file list sent 22952 bytes received 26 bytes 15318.67 bytes/sec
total 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)

expect: spawn id exp4 not open的更多相关文章

  1. expect: spawn id exp6 not open while executing "expect eof"

    1.expect是基于tcl演变而来的,所以很多语法和tcl类似 基本的语法如下所示:1.1 首行加上/usr/bin/expect1.2 spawn: 后面加上需要执行的shell命令,比如说spa ...

  2. linux expect, spawn用法小记

    linux expect, spawn用法小记_IT民工_百度空间 linux expect, spawn用法小记 版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://sys ...

  3. [转载]expect spawn、linux expect 用法小记

    原文地址:expect spawn.linux expect 用法小记作者:悟世 使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写 ...

  4. expect spawn、linux expect 用法小记

    使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写却不知其然.本文用一个最短的例子说明脚本的原理. 脚本代码如下: ######## ...

  5. 【转】shell expect spawn、linux expect 用法小记 看着舒服点

    使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写却不知其然.本文用一个最短的例子说明脚本的原理. 脚本代码如下: ######## ...

  6. Centos expect spawn、linux expect 用法

    使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写却不知其然.本文用一个最短的例子说明脚本的原理.  脚本代码如下:  ###### ...

  7. 使用expect实现自动交互,shell命令行自动输入,脚本自动化,变量引用,expect spawn执行带引号命令,expect 变量为空,不生效,不能匹配通配符*,函数,数组

    背景 有需求,在允许命令或者脚本跳出交互行,需要进行内容输入,但需要人手动输入,不是很方便,此时可以通过expect来实现自动互动交互. expect是一个自动交互功能的工具,可以满足代替我们实际工作 ...

  8. spawn id exp6 not open

    原因 脚本没有被执行 解决方案 手动执行该条命令参看报错的原因

  9. ssh+expect批量分发

    Expect安装 [root@web02 scripts]# yum install expect SSH密钥生成 [root@web02 scripts]# ssh-keygen -t dsa   ...

随机推荐

  1. Jquery的hover方法让鼠标经过li时背景变色

    来源地址:http://itfish.net/article/29790.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Trans ...

  2. iOS键盘覆盖输入框的处理.doc

    在一个多项输入界面上,会有多个UITextfield类型的输入框.为了滚动方面,我们会将他们一一添加到UITableView的cell中,从而组成一个可以上下滑动的数据输入界面. 但是字符输入是通过系 ...

  3. jboss7 加载module过程

    1. 调试类: org.jboss.as.server.Main的main方法 断点: Module.registerURLStreamHandlerFactoryModule(Module.getB ...

  4. table标签

    table标签使我们最常用的的标签,在使用table标签时我们要注意一些其属性,早期我们经常使用table标签对其进行页面布局但是现在我们基本不再使用,由此可见table标签也是非常强大的一个工具. ...

  5. IIS rewrite映射规则语法格式

    IIS rewrite映射规则语法格式,特殊符号:&请用& amp;代替,否则异常. <configuration> <system.webServer> &l ...

  6. Chapter 1. Introduction gradle介绍

      We would like to introduce Gradle to you, a build system that we think is a quantum leap for build ...

  7. ssanf()的用法

    转载自http://www.cnblogs.com/lyq105/archive/2009/11/28/1612677.html 看着写着不错,就转了,保存一下 C语言函数sscanf()的用法 ss ...

  8. ListControl一细节处理

    做VC ListControl的时候发现一个问题,右击菜单的时候,在没有列表数据的空白处也会出现菜单,这可够纠结的,于是用了点方法解决了,希望分享同样不爽的朋友们.代码如下: void CXXXDlg ...

  9. 更加详细的Log4net的配置

    请转到周金桥的文章 http://blog.csdn.net/zhoufoxcn/article/details/6029021

  10. How to Install Tomcat

    Read:http://www.ntu.edu.sg/home/ehchua/programming/howto/Tomcat_HowTo.html