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.42.1.tar.gz
Download MD5 Sum: fea346fac6aaf74b0851f2441f478571
Download size: 525 KB
Estimated disk space required: 4.8 MB
Estimated build time: 0.1 SBU
Install Expect by running the following commands:
patch -Np1 -i ../expect-5.42.1-spawn-1.patch && ./configure --prefix=/usr --with-tcl=/usr/lib \ --with-tclinclude=/usr/include/tcl8.4 --enable-shared && make
Now, as the root user:
make install && ln -sf ../libexpect5.42.a /usr/lib/expect5.42
--enable-shared: This option enables building the shared library.
--with-tk=/usr/lib: Use this option to link in the Tk library.
ln -sf ../libexpect5.42.a /usr/lib/expect5.42: 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.
generates an Expect script from watching a session.
is a wrapper to make passwd(1) be non-interactive.
encrypts all files in a directory.
decrypts all files in a directory.
allows processes to be disconnected and reconnected to a terminal.
is a program that “talks” to other interactive programs according to a script.
retrieves an RFC (or the index) from UUNET.
allows two (or more) people to interact with one shell (or any arbitrary program).
unhangs a printer which claims it is “waiting for lock”.
generates passwords and can apply them automatically to users.
changes a password on multiple machines.
is much like ftp except it uses ~g and ~p instead of mget and mput.
is rlogin except it uses the local current directory as the current working directory on the remote machine.
reads a complete line from stdin and aborts after a given number of seconds.
runs a program for a given amount of time.
disables the output buffering that occurs when program output is redirected.
retrieves a weather report (courtesy University of Michigan) for a given city or geographical area.
is a combination of Expect with Tk and should run any wish or Expect script.
creates multiple xterms that can be driven together or separately.
pops up a window when there is unread news in your favorite newsgroups and removes the window after you've read the news.
is a script to change passwords using expectk.
allows users in separate xterms to share one shell (or any program that runs in an xterm).
is a script that acts as a front-end for xpilot.
contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl).
Last updated on 2005-01-30 10:59:50 -0700