首页 最新文章网站服务器正文

文件同步工具expect

#cd /usr/local/ 

首先安装tcl,

下载地址如下 https://jaist.dl.sourceforge.net/project/tcl/Tcl/8.4.11/tcl8.4.11-src.tar.gz  

expect的下载地址: https://jaist.dl.sourceforge.net/project/expect/Expect/5.45/expect5.45.tar.gz  

安装tcl: 

#tar -zxvf tcl8.4.11-src.tar.gz 

#cd  ./tcl8.4.11/unix/ #./configure 

#make && make install 

安装expect: 

#tar -zxvf expect5.45.tar.gz 

#cd expect5.45 

#./configure --prefix=/usr/local/expect5.45/ --with-tcl=/usr/local/tcl8.4.11/unix/ --with-tclinclude=/usr/local/tcl8.4.11/generic/ --enable-shared

 checking for correct TEA configuration... ok (TEA 3.9) configure: configuring expect 5.45 checking for Tcl configuration... found //usr/local/tcl8.4.11/unix/tclConfig.sh checking for existence of //usr/local/tcl8.4.11/unix/tclConfig.sh... loading configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /usr/local …… checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes configure: creating ./config.status config.status: creating Makefile 

#make && make install 

#ln -s  /usr/local/bin/expect /usr/bin/expect 

# whereis tcl 

tcl: /usr/lib/tcl8.4 /usr/local/lib/tcl8.4 /usr/share/tcl8.4 

# whereis expect 

expect: /usr/local/expect5.45 #

评论

精彩评论
觉得有用就打赏吧
关注本站公众号,享受更多服务!
联系方式
QQ:########
地址:中国·辽宁
Email:2727987445#qq.com
Copyright ©2015-2023\4.Powered by 云水客 | 网站地图 | 辽ICP备14000512号-5