%general-entities; ]> Expect-&expect-version; Expect 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. &lfs91_checked; Package Information Download (HTTP): Download MD5 sum: &expect-md5sum; Download size: &expect-size; Estimated disk space required: &expect-buildsize; Estimated build time: &expect-time; Expect Dependencies Required Optional User Notes: Installation of Expect Install Expect by running the following commands: ./configure --prefix=/usr \ --with-tcl=/usr/lib \ --enable-shared \ --mandir=/usr/share/man \ --with-tclinclude=/usr/include && make To test the results, issue: make test. Now, as the root user: make install && ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib 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 ~/.expect.rc $exp_library/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. Contents Installed Programs Installed Library Installed Directory autoexpect, autopasswd, cryptdir, decryptdir, dislocate, expect, ftp-rfc, kibitz, lpunlock, mkpasswd, passmass, rftp, rlogin-cwd, timed-read, timed-run, unbuffer, weather, and optionally (if Expect was linked against Tk), multixterm, tknewsbiff, tkpasswd, xkibitz, and xpstat libexpect&expect-version;.so /usr/lib/expect&expect-version; Short Descriptions autoexpect generates an Expect script from watching a session. autoexpect autopasswd is a wrapper to make passwd(1) be non-interactive. autopasswd cryptdir encrypts all files in a directory. cryptdir decryptdir decrypts all files in a directory. decryptdir dislocate allows processes to be disconnected and reconnected to a terminal. dislocate expect is a program that talks to other interactive programs according to a script. expect ftp-rfc retrieves an RFC (or the index) from UUNET. ftp-rfc kibitz allows two (or more) people to interact with one shell (or any arbitrary program). kibitz lpunlock unhangs a printer which claims it is waiting for lock. lpunlock mkpasswd generates passwords and can apply them automatically to users. mkpasswd passmass changes a password on multiple machines. passmass rftp is much like ftp except it uses and instead of and . rftp rlogin-cwd is rlogin except it uses the local current directory as the current working directory on the remote machine. rlogin-cwd timed-read reads a complete line from stdin and aborts after a given number of seconds. timed-read timed-run runs a program for a given amount of time. timed-run unbuffer disables the output buffering that occurs when program output is redirected. unbuffer weather retrieves a weather report (courtesy University of Michigan) for a given city or geographical area. weather multixterm creates multiple xterms that can be driven together or separately. multixterm tknewsbiff pops up a window when there is unread news in your favorite newsgroups and removes the window after you've read the news. tknewsbiff tkpasswd is a script to change passwords using expect and Tk. tkpasswd xkibitz allows users in separate xterms to share one shell (or any program that runs in an xterm). xkibitz xpstat is a script that acts as a front-end for xpilot. xpstat libexpect&expect-version;.so contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl). libexpect&expect-version;.so