Expect: Difference between revisions
From CBLFS
Jump to navigationJump to search
No edit summary |
|||
| (7 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{| style="text-align: left; background-color: AliceBlue;" | {| style="text-align: left; background-color: AliceBlue;" | ||
|- | |-valign="top" | ||
!Download Source: | !Download Source: | ||
| http://expect.nist.gov/old/expect- | | http://expect.nist.gov/old/expect-{{Expect-Version}}.tar.gz | ||
|- | |-valign="top" | ||
!Download Patch: | !Download Patch: | ||
| http://svn.cross-lfs.org/svn/repos/patches/expect/expect- | | http://svn.cross-lfs.org/svn/repos/patches/expect/expect-{{Expect-Version}}-config_update-1.patch | ||
|- | |-valign="top" | ||
!Download Patch: | !Download Patch: | ||
| http://svn.cross-lfs.org/svn/repos/patches/expect/expect- | | http://svn.cross-lfs.org/svn/repos/patches/expect/expect-{{Expect-Version}}-spawn-2.patch | ||
|} | |} | ||
---- | ---- | ||
{{Blank-Package-Introduction}} | |||
== Dependencies == | == Dependencies == | ||
| Line 24: | Line 26: | ||
Compile the package: | Compile the package: | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-config_update-1.patch && | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-spawn-2.patch && | ||
./configure --prefix=/usr --enable-shared \ | ./configure --prefix=/usr --enable-shared \ | ||
--with-tcl=/usr/lib \ | |||
--with-tclinclude=/usr/include && | --with-tclinclude=/usr/include && | ||
make | make | ||
| Line 40: | Line 43: | ||
Compile the package: | Compile the package: | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-config_update-1.patch && | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-spawn-2.patch && | ||
CC="gcc ${BUILD32}" USE_ARCH=32 \ | CC="gcc ${BUILD32}" USE_ARCH=32 \ | ||
./configure --prefix=/usr --enable-shared \ | ./configure --prefix=/usr --enable-shared \ | ||
--with-tcl=/usr/lib \ | --with-tcl=/usr/lib \ | ||
--with-tk=/usr/lib \ | |||
--with-tclinclude=/usr/include && | --with-tclinclude=/usr/include && | ||
make | make | ||
| Line 56: | Line 60: | ||
Compile the package: | Compile the package: | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-config_update-1.patch && | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-spawn-2.patch && | ||
CC="gcc ${BUILDN32}" USE_ARCH=n32 \ | CC="gcc ${BUILDN32}" USE_ARCH=n32 \ | ||
./configure --prefix=/usr --enable-shared \ | ./configure --prefix=/usr --enable-shared \ | ||
--libdir=/usr/lib32 \ | --libdir=/usr/lib32 \ | ||
--with-tcl=/usr/lib32 \ | --with-tcl=/usr/lib32 \ | ||
--with-tk=/usr/lib32 \ | |||
--with-tclinclude=/usr/include && | --with-tclinclude=/usr/include && | ||
make | make | ||
| Line 73: | Line 78: | ||
Compile the package: | Compile the package: | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-config_update-1.patch && | ||
patch -Np1 -i ../expect- | patch -Np1 -i ../expect-{{Expect-Version}}-spawn-2.patch && | ||
CC="gcc ${BUILD64}" USE_ARCH=64 \ | CC="gcc ${BUILD64}" USE_ARCH=64 \ | ||
./configure --prefix=/usr --enable-shared \ | ./configure --prefix=/usr --enable-shared \ | ||
| Line 86: | Line 91: | ||
make install | make install | ||
= Contents = | |||
{| style="text-align: left;" | |||
|-valign="top" | |||
! Installed Programs: | |||
| 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 | |||
|-valign="top" | |||
! Installed Libraries: | |||
| libexpect-{{Expect-Version2}}.{so,a} | |||
|-valign="top" | |||
! Installed Directories: | |||
| /usr/lib/expect{{Expect-Version2}} | |||
|} | |||
=== Short Descriptions === | |||
{| style="text-align: left;" | |||
|-valign="top" | |||
! autoexpect | |||
| generates an Expect script from watching a session. | |||
|-valign="top" | |||
! autopasswd | |||
| is a wrapper to make '''passwd'''(1) be non-interactive. | |||
|-valign="top" | |||
! cryptdir | |||
| encrypts all files in a directory. | |||
|-valign="top" | |||
! decryptdir | |||
| decrypts all files in a directory. | |||
|-valign="top" | |||
! dislocate | |||
| allows processes to be disconnected and reconnected to a terminal. | |||
|-valign="top" | |||
! expect | |||
| is a program that “talks” to other interactive programs according to a script. | |||
|-valign="top" | |||
! ftp-rfc | |||
| retrieves an RFC (or the index) from UUNET. | |||
|-valign="top" | |||
! kibitz | |||
| allows two (or more) people to interact with one shell (or any arbitrary program). | |||
|-valign="top" | |||
! lpunlock | |||
| unhangs a printer which claims it is “waiting for lock”. | |||
|-valign="top" | |||
! mkpasswd | |||
| generates passwords and can apply them automatically to users. | |||
|-valign="top" | |||
! passmass | |||
| changes a password on multiple machines. | |||
|-valign="top" | |||
! rftp | |||
| is much like '''ftp''' except it uses ~g and ~p instead of mget and mput. | |||
|-valign="top" | |||
! rlogin-cwd | |||
| is '''rlogin''' except it uses the local current directory as the current working directory on the remote machine. | |||
|-valign="top" | |||
! timed-read | |||
| reads a complete line from stdin and aborts after a given number of seconds. | |||
|-valign="top" | |||
! timed-run | |||
| runs a program for a given amount of time. | |||
|-valign="top" | |||
! unbuffer | |||
| disables the output buffering that occurs when program output is redirected. | |||
|-valign="top" | |||
! weather | |||
| retrieves a weather report (courtesy University of Michigan) for a given city or geographical area. | |||
|-valign="top" | |||
! expectk | |||
| is a combination of Expect with Tk and should run any '''wish''' or Expect script. | |||
|-valign="top" | |||
! multixterm | |||
| creates multiple '''xterm'''s that can be driven together or separately. | |||
|-valign="top" | |||
! tknewsbiff | |||
| pops up a window when there is unread news in your favorite newsgroups and removes the window after you've read the news. | |||
|-valign="top" | |||
! tkpasswd | |||
| is a script to change passwords using '''expectk'''. | |||
|-valign="top" | |||
! xkibitz | |||
| allows users in separate '''xterm'''s to share one shell (or any program that runs in an '''xterm'''). | |||
|-valign="top" | |||
! xpstat | |||
| is a script that acts as a front-end for '''xpilot'''. | |||
|-valign="top" | |||
! libexpect5.43.{so,a} | |||
| contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl). | |||
|} | |||
[[Category:Programming]] | |||
Latest revision as of 15:41, 19 March 2009
Introduction to Expect
Project Homepage: Unknown
Dependencies
Required
Optional
Non-Multilib
Compile the package:
patch -Np1 -i ../expect-5.43.0-config_update-1.patch &&
patch -Np1 -i ../expect-5.43.0-spawn-2.patch &&
./configure --prefix=/usr --enable-shared \
--with-tcl=/usr/lib \
--with-tclinclude=/usr/include &&
make
Install the package
make install
Multilib
32Bit
Compile the package:
patch -Np1 -i ../expect-5.43.0-config_update-1.patch &&
patch -Np1 -i ../expect-5.43.0-spawn-2.patch &&
CC="gcc ${BUILD32}" USE_ARCH=32 \
./configure --prefix=/usr --enable-shared \
--with-tcl=/usr/lib \
--with-tk=/usr/lib \
--with-tclinclude=/usr/include &&
make
Install the package
make install
N32
Compile the package:
patch -Np1 -i ../expect-5.43.0-config_update-1.patch &&
patch -Np1 -i ../expect-5.43.0-spawn-2.patch &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=/usr --enable-shared \
--libdir=/usr/lib32 \
--with-tcl=/usr/lib32 \
--with-tk=/usr/lib32 \
--with-tclinclude=/usr/include &&
make
Install the package
make install
64Bit
Compile the package:
patch -Np1 -i ../expect-5.43.0-config_update-1.patch &&
patch -Np1 -i ../expect-5.43.0-spawn-2.patch &&
CC="gcc ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/usr --enable-shared \
--libdir=/usr/lib64 \
--with-tcl=/usr/lib64 \
--with-tk=/usr/lib64 \
--with-tclinclude=/usr/include &&
make
Install the package
make install
Contents
| Installed Programs: | 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 |
|---|---|
| Installed Libraries: | libexpect-5.43.{so,a} |
| Installed Directories: | /usr/lib/expect5.43 |
Short Descriptions
| autoexpect | generates an Expect script from watching a session. |
|---|---|
| autopasswd | is a wrapper to make passwd(1) be non-interactive. |
| cryptdir | encrypts all files in a directory. |
| decryptdir | decrypts all files in a directory. |
| dislocate | allows processes to be disconnected and reconnected to a terminal. |
| expect | is a program that “talks” to other interactive programs according to a script. |
| ftp-rfc | retrieves an RFC (or the index) from UUNET. |
| kibitz | allows two (or more) people to interact with one shell (or any arbitrary program). |
| lpunlock | unhangs a printer which claims it is “waiting for lock”. |
| mkpasswd | generates passwords and can apply them automatically to users. |
| passmass | changes a password on multiple machines. |
| rftp | is much like ftp except it uses ~g and ~p instead of mget and mput. |
| rlogin-cwd | is rlogin except it uses the local current directory as the current working directory on the remote machine. |
| timed-read | reads a complete line from stdin and aborts after a given number of seconds. |
| timed-run | runs a program for a given amount of time. |
| unbuffer | disables the output buffering that occurs when program output is redirected. |
| weather | retrieves a weather report (courtesy University of Michigan) for a given city or geographical area. |
| expectk | is a combination of Expect with Tk and should run any wish or Expect script. |
| multixterm | creates multiple xterms that can be driven together or separately. |
| 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 | is a script to change passwords using expectk. |
| xkibitz | allows users in separate xterms to share one shell (or any program that runs in an xterm). |
| xpstat | is a script that acts as a front-end for xpilot. |
| libexpect5.43.{so,a} | contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl). |