linux expect 安装
来源:互联网 发布:软件服务外包 编辑:程序博客网 时间:2024/05/22 08:08
Expect是在Tcl基础上创建起来的,它还提供了一些Tcl所没有的命令,它可以用来做一些linux下无法做到交互的一些命令操作,在远程管 理方面发挥很大的作用。
spawn命令激活一个Unix程序来进行交互式的运行。
send命令向进程发送字符串。
expect 命令等待进程的某些字符串。
expect支持正规表达式并能同时等待多个字符串,并对每一个字符串执行不同的操作.
A. Tcl 安装
主页: http://www.tcl.tk
下载地址: http://www.tcl.tk/software/tcltk/downloadnow84.tml
1.下载源码包
wget http://nchc.dl.sourceforge.net/sourceforge/tcl/tcl8.4.11-src.tar.gz
2.解压缩源码包
tar xfvz tcl8.4.11-src.tar.gz
3.安装配置
cd tcl8.4.11/unix
./configure --prefix=/usr/tcl --enable-shared
make
make install
安装完毕以后,进入tcl源代码的根目录,把子目录unix下面的tclUnixPort.h copy到子目录generic中。
暂时不要删除tcl源代码,因为expect的安装过程还需要用。
B. expect 安装 (需Tcl的库)
主页: http://expect.nist.gov/
1.下载源码包
wget http://sourceforge.net/projects/expect/files/Expect/5.45/expect5.45.tar.gz/download --no-check-certificate
2.解压缩源码包
tar xzvf expect5.45.tar.gz
3.安装配置
cd expect5.45
./configure --prefix=/usr/expect --with-tcl=/usr/tcl/lib --with-tclinclude=../tcl8.4.11/generic
make
make install
ln -s /usr/tcl/bin/expect /usr/expect/bin/expect
- linux下安装expect
- linux expect 安装
- linux expect 安装
- LINUX EXPECT的安装
- linux下expect安装
- linux expect 安装
- linux expect 安装
- linux 安装 expect tcl
- linux下expect安装
- linux expect 安装
- Linux expect安装
- linux expect 安装
- linux 安装expect
- linux 安装expect
- linux下安装expect解决方法
- linux下安装expect解决方法
- Linux下 expect命令【安装】
- linux expect简介及安装
- 图解opencv配置原理
- android中如何控制声音是从扬声器还是从 听筒里出啦
- matlab数组中求最大的几个数并返回其位置
- shell的特殊重要内置变量
- jquery-事件
- linux expect 安装
- eclipse导入android项目报错 MainActivity 和values文件出错
- 初入密码学世界
- android 关于发起不同网络请求与服务器session不一致问题
- 请问诸位大神,Android怎么实现图片转动
- linq查询的结果怎么在视图用
- 拓扑排序 详解 + 并查集 详解 + 最小生成树详解
- Android简易实战教程--第五十话《动画扫描》
- JniHelper的再说明