ChinaUnix.net
相关文章推荐:

linux expect r

由于最近要学习r="red">expect,所以便在自己的机器上面装r="red">expect,网上找了好多文章看,但是还是出现了很多问题,于是把问题写出来给后来的人一点小小的帮助,聊表心意。 我是在turbor="red">linux上面安装的,而且是在vmware下面安装的。 检查系统,发现tcl已经安装了。 [root@rhel ~]# rpm -qa|grep tcl tcl-8.4.13-3.fc6 tclx-8.4.0-5.fc6后来才发现,因为r="red">expect需要重新编译后安装,那么就需要tcl的开发包。 rpm -iv...

by sjhf - Linux文档专区 - 2009-05-31 01:32:54 阅读(956) 回复(0)

相关讨论

今天同事要求在两台新装的r="red">linux系统上安装r="red">expect。 说实话还真不知道这个东西是干什么的 -:( 后来查了一下,赶紧补习补习 r="red">expect [is a] software suite for automating interactive tools。使用它系统管理员的可以创建脚本用来实现对命令或程序提供输入,而这些命令和程序是期望从终端(terminal)得到输入,一般来说这些输入都需要手工输入进行的。 检查系统,发现tcl已经安装了。 [root@r...

by sjhf - Linux文档专区 - 2009-03-23 11:19:34 阅读(574) 回复(0)

# 创建Tcl [root@centos5 install\]# cd tcl8.4.19 [root@centos5 tcl8.4.19\]# cd unix/ [root@centos5 unix\]# ./configure --prefix=/toolchain [root@centos5 unix\]# make [root@centos5 unix\]# make install {color:blue}安装Tcl的头文件,让Tcl的一些扩展程序能够被创建{color} [root@centos5 unix\]# make install-private-headers Installing private header files # 创建r="red">expect [root@centos5 install\]# cd r="red">expect-5.4...

by ubuntuer - Linux文档专区 - 2008-12-03 23:06:09 阅读(745) 回复(0)

r="red">linux r="red">expect的安装 今天同事要求在两台新装的r="red">linux系统上安装r="red">expect。说实话还真不知道这个东西是干什么的。 后来查了一下,赶紧补习补习 r="red">expect [is a] software suite for automating interactive tools。使用它系统管理员的可以创建脚本用来实现对命令或程序提供输入,而这些命令和程序是期望从终端(terminal)得到输入,一般来说这些输 入都需要手工输入进行的。 ...

by skysong1982 - Linux文档专区 - 2008-10-11 17:06:14 阅读(770) 回复(0)

r="red">expect 中的ctrl + r键如何表示 谁有比较全的键码表共享下

by chinaboywg - Shell - 2011-03-03 17:04:34 阅读(3119) 回复(6)

我在使用r="red">expect 执行sed -i 的时候, 总是报错无法执行, 请大家帮我分析下, 谢谢。具体的语句是这样的, r="red">expect "*#" send "sed -i s/SEr="red">linux=enforcing/SEr="red">linux=disabled/g /etc/sysconfig/ser="red">linux\r" 提示的错误是这样的 send: spawn id exp6 not open while executing "send "sed -i s/SEr="red">linux=enforcing/SEr="red">linux=disabled/g /etc/sysconfig/ser="red">linux\r"" (file "./test.exp" line 14) 请大家帮我看看谢谢

by 人生高地 - 监控及自动化运维技术 - 2012-12-07 16:33:21 阅读(1744) 回复(3)

写了一个r="red">expect通过ssh登陆到远程主机的脚本,但是登陆成功后自动断开,怎么做才能使保持会话那

by mengchang_cu - Shell - 2012-02-02 17:29:38 阅读(1085) 回复(3)

r="red">expect <r="red">expect { "*(yes/no)?*" {send -- "yes\r"; exp_continue} "*password:*" {send -- "kjk123\r"} } send "touch a b c d e\r" send "exit\r" ! 为什么 在10.10.17.3 机器上没建立起来呢

by 267020090 - Shell - 2011-06-21 19:01:27 阅读(1948) 回复(8)

想请教一个问题,在r="red">expect里面怎样调用shell脚本

by wtuter - Shell - 2008-10-31 10:00:18 阅读(1539) 回复(0)

 以前装的fc4自己在装系统 的过程中装了r="red">expect , 现在的系统 没有,只好自己下了装,  装完,装前几次老是出问题,最好装好,担心自己以后忘记了,就写下来在这里   先下载  ,是在 chinaunix下载的        三个包  : tcl8.4.13-src.tar.gz tk8.4.13-src.tar.gz r="red">expect-5.37.1.tar.gz 装 tcl .解压就不说了,就 一个 configure 前面加参数  ...

by achlice - Linux文档专区 - 2007-11-13 17:08:37 阅读(783) 回复(0)

是否能下列x.x.x.x利用變數的方式 讀入例如/ETC/HOSTS 分別登入不同台SERVER 執行COMMAND #!/usr/bin/r="red">expect spawn telnet x.x.x.x r="red">expect "login:" send "pom\r" r="red">expect "Password:" send "123456\r" r="red">expect "$" send "cd /home/p ...

by 68930089 - Shell - 2006-08-15 23:47:56 阅读(1118) 回复(1)