expect: spawn id exp4 not open
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的更多相关文章
- expect: spawn id exp6 not open while executing "expect eof"
1.expect是基于tcl演变而来的,所以很多语法和tcl类似 基本的语法如下所示:1.1 首行加上/usr/bin/expect1.2 spawn: 后面加上需要执行的shell命令,比如说spa ...
- linux expect, spawn用法小记
linux expect, spawn用法小记_IT民工_百度空间 linux expect, spawn用法小记 版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明http://sys ...
- [转载]expect spawn、linux expect 用法小记
原文地址:expect spawn.linux expect 用法小记作者:悟世 使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写 ...
- expect spawn、linux expect 用法小记
使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写却不知其然.本文用一个最短的例子说明脚本的原理. 脚本代码如下: ######## ...
- 【转】shell expect spawn、linux expect 用法小记 看着舒服点
使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写却不知其然.本文用一个最短的例子说明脚本的原理. 脚本代码如下: ######## ...
- Centos expect spawn、linux expect 用法
使用expect实现自动登录的脚本,网上有很多,可是都没有一个明白的说明,初学者一般都是照抄.收藏.可是为什么要这么写却不知其然.本文用一个最短的例子说明脚本的原理. 脚本代码如下: ###### ...
- 使用expect实现自动交互,shell命令行自动输入,脚本自动化,变量引用,expect spawn执行带引号命令,expect 变量为空,不生效,不能匹配通配符*,函数,数组
背景 有需求,在允许命令或者脚本跳出交互行,需要进行内容输入,但需要人手动输入,不是很方便,此时可以通过expect来实现自动互动交互. expect是一个自动交互功能的工具,可以满足代替我们实际工作 ...
- spawn id exp6 not open
原因 脚本没有被执行 解决方案 手动执行该条命令参看报错的原因
- ssh+expect批量分发
Expect安装 [root@web02 scripts]# yum install expect SSH密钥生成 [root@web02 scripts]# ssh-keygen -t dsa ...
随机推荐
- NDN与TCP/IP
搬运自http://blog.csdn.net/programmer_at/article/details/49203241 当前TCP/IP协议存在哪些问题?如何改进? 当时没有回答好,然后提到了 ...
- 关于Android Canvas.drawText方法中的坐标参数的正确解释
canvas.drawText("www.jcodecraeer.com", x, y, paint); x和y参数是指定字符串中心的坐标吗?还是左上角的坐标?这个问题的直观印象 ...
- easyui 给文本框 checkbox赋值问题
刚进公司 要做一个后台维护系统,选择easyui 从未接触过 对于页面给文本框赋值遇到一些问题 写下了来 我之前使用了好几种方式都未能成功给input 文本框赋值 第一尝试传统的JavaScript代 ...
- unity3d优化IOS
1. using UnityEngine; class GarbageCollectManager : MonoBehaviour { public int frameFreq = 30; ...
- leetCode 48.Rotate Image (旋转图像) 解题思路和方法
Rotate Image You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees ...
- 灵活性比Listview更好的RecycleView
RecycleView:是Android L版本中新添加的一个用来取代ListView的SDK,它的灵活性与可替代性比listview更好. RecyclerView与ListView原理是类似的:都 ...
- JNI 详细使用步骤 上手示例
1.定义本地native方法 定义本地方法,通常情况下,应单独定义一个类来封装所有native方法 /** 存放native方法的类 */ public class MyNativeMethods { ...
- SQL 去除小数点后无效 0 的方法
select convert(float,10.0000) 就是这么简单
- java语言基础特性
使用Java5中的类型安全枚举和注解(以及元注解)编程 http://www.importnew.com/11053.html
- linux执行文件命令
1.如果path中有你的程序所在的目录,那么直接执行filename即可 2.如果path中没有程序所在目录,那么进入目录./filename或者path/filename 比如 wj@ubuntu: ...