Beyond Linux® From Scratch - Version 2018-03-18

Chapter 13. Programming

Expect-5.45.4

Introduction to Expect

The Expect package was installed
in the LFS temporary tools directory for testing other packages.
These procedures install it in a permanent location. It 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.

This package is known to build and work properly using an LFS-8.2
platform.

Command Explanations

-with-tcl=/usr/lib: This
parameter is used to tell the configure script where the
tclConfig.sh is
located.

--enable-shared: This
option enables building the shared library.

ln -sf ...: This
command creates a required link to the shared library.

Configuring Expect

Config Files

$exp_library/expect.rc and
~/.expect.rc

Configuration Information

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.