由于最近要学习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...
# 创建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...
r="red">linux r="red">expect的安装 今天同事要求在两台新装的r="red">linux系统上安装r="red">expect。说实话还真不知道这个东西是干什么的。 后来查了一下,赶紧补习补习 r="red">expect [is a] software suite for automating interactive tools。使用它系统管理员的可以创建脚本用来实现对命令或程序提供输入,而这些命令和程序是期望从终端(terminal)得到输入,一般来说这些输 入都需要手工输入进行的。 ...
我在使用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) 请大家帮我看看谢谢
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 机器上没建立起来呢
以前装的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 前面加参数 ...
是否能下列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 ...