[Switch] installation of CT

Source: Internet
Author: User

From: http://blog.chinaunix.net/uid-20639775-id-2453085.html

CT is created on the basis of TCL. It also provides some commands not available in tcl and can be used for some command operations that cannot interact in Linux, it plays a major role in remote management.
The spawn command activates a UNIX program for interactive running.
The send command sends a string to the process.
The wait CT command waits for some strings of the process.
Regular CT supports regular expressions and can wait for multiple strings at the same time, and perform different operations on each string.

A. TCL Installation

Home: http://www.tcl.tk

: Http://www.tcl.tk/software/tcltk/downloadnow84.tml

1. Download the source code package

Wget http://nchc.dl.sourceforge.net/sourceforge/tcl/tcl8.4.11-src.tar.gz

2. decompress the source code package
tar xfvz tcl8.4.11-src.tar.gz
3. install and configure
cd tcl8.4.11/unix./configure --prefix=/usr/tcl --enable-sharedmakemake install

After installation, go to the root directory of the Tcl source code and copy tclunixport. h under the Unix subdirectory to the subdirectory generic.

Do not delete the Tcl source code for the moment, because the installation process of keep CT still needs to be used.

B. Keep CT installation (TCL library required)

Home: http://expect.nist.gov/

1. Download the source code package
wget http://sourceforge.net/projects/expect/files/Expect/5.45/expect5.45.tar.gz/download
2. decompress the source code package
tar xzvf expect5.45.tar.gz
3. install and configure
cd expect5.45./configure --prefix=/usr/expect --with-tcl=/usr/tcl/lib --with-tclinclude=../tcl8.4.11/genericmakemake installln -s /usr/tcl/bin/expect /usr/bin/expect

[Switch] installation of CT

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.