The Expect package contains tools for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect is also useful for testing these same applications as well as easing all sorts of tasks that are prohibitively difficult with anything else.
Download (HTTP): http://expect.nist.gov/old/expect-5.43.0.tar.gz
Download MD5 sum: 230400129630335b3060a42f66fec11d
Download size: 525 KB
Estimated disk space required: 4.6 MB
Estimated build time: 0.07 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/expect
Install Expect by running the following commands:
patch -Np1 -i ../expect-5.43.0-spawn-2.patch && ./configure --prefix=/usr \ --with-tcl=/usr/lib \ --with-tclinclude=/usr/include \ --enable-shared && make
To test the results, issue: make test.
Now, as the root user:
make install && ln -sf ../libexpect5.43.a /usr/lib/expect5.43
-with-tcl=/usr/lib: This parameter is required in some cases to link in the Tcl library.
--enable-shared: This option enables building the shared library.
ln -sf ../libexpect5.43.a /usr/lib/expect5.43: This command creates a required link to the static library.
Reference the expect man page for information about utilizing the expect.rc configuration files. Additionally, many of the tools contained in the Expect package will use their own configuration files. Reference the respective man page, or examine the script directly for configuration file information.
Last updated on 2007-02-14 13:35:05 -0600