%general-entities; ]> $LastChangedBy$ $Date$ Expect-&expect-version; Introduction to <application>Expect</application> 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. Package information Download (HTTP): Download (FTP): Download MD5 Sum: &expect-md5sum; Download size: &expect-size; Estimated disk space required: &expect-buildsize; Estimated build time: &expect-time; Additional downloads Required Patch: <application>Expect</application> dependencies Required Optional Installation of <application>Expect</application> Install Expect by running the following commands: patch -Np1 -i ../expect-&expect-version;-spawn-1.patch && ./configure --prefix=/usr --with-tcl=/usr/lib \ --with-tclinclude=/usr/include/tcl8.4 --enable-shared && make && make install && ln -sf ../libexpect5.42.a /usr/lib/expect5.42 Command explanations --enable-shared: This option enables building the shared library. : 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. Configuring <application>Expect</application> 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. Contents The Expect package contains the libexpect libraries, 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), expectk, multixterm, tknewsbiff, tkpasswd, xkibitz and xpstat. Description autoexpect autoexpect generates an Expect script from watching a session. autopasswd autopasswd is a wrapper to make passwd(1) be non-interactive. cryptdir cryptdir encrypts all files in a directory. decryptdir decryptdir decrypts all files in a directory. dislocate dislocate allows processes to be disconnected and reconnected to a terminal. expect expect is a program that talks to other interactive programs according to a script. ftp-rfc ftp-rfc retrieves an rfc (or the index) from uunet. kibitz kibitz allows two (or more) people to interact with one shell (or any arbitrary program). lpunlock lpunlock unhangs a printer which claims it is waiting for lock. mkpasswd mkpasswd generates passwords and can apply them automatically to users. passmass passmass changes a password on multiple machines. rftp rftp is much like ftp except it uses '~g' and '~p' instead of 'mget' and 'mput'. rlogin-cwd rlogin-cwd is rlogin except it uses the local current directory as the current working directory on the remote machine. timed-read timed-read reads a complete line from stdin and aborts after a given number of seconds. timed-run timed-run runs a program for a given amount of time. unbuffer unbuffer disables the output buffering that occurs when program output is redirected. weather weather retrieves a weather report (courtesy University of Michigan) for a given city or geographical area. expectk expectk is a combination of Expect with Tk and should run any wish or Expect script. multixterm multixterm creates multiple xterms that can be driven together or separately. tknewsbiff tknewsbiff pops up a window when there is unread news in your favorite newsgroups and removes the window after you've read the news. tkpasswd tkpasswd is a script to change passwords using expectk. xkibitz xkibitz allows users in separate xterms to share one shell (or any program that runs in an xterm). xpstat xpstat is a script that acts as a front-end for xpilot.