home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / index / expect.txt < prev    next >
Text File  |  1997-09-22  |  4KB  |  87 lines

  1. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2. INDEX ENTRY FOR EXPECT:
  3. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4.  
  5. Name: Expect - Controls interactive programs
  6.  
  7. Version: 5.24
  8.  
  9. Author(s): Don Libes <libes@nist.gov>
  10.  
  11.    Awards, love letters, and bug reports may be sent to:
  12.  
  13.    Don Libes
  14.    National Institute of Standards and Technology
  15.    Bldg 220, Rm A-127
  16.    Gaithersburg, MD  20899
  17.    (301) 975-3535
  18.    libes@nist.gov
  19.  
  20. On the CD-ROM in: sysadm/expect.tar
  21.  
  22. Ftp source: ftp.nist.gov:/mel/div826/subject/expect
  23. Web page: http://expect.nist.gov
  24.  
  25. Size on the CD: 1.3 MB (partially compressed)
  26.  
  27. Description:
  28.  
  29.    Expect is a program that "talks" to other interactive programs according
  30.    to a script.  Following the script, Expect knows what can be expected
  31.    from a program and what the correct response should be.  An interpreted
  32.    language provides branching and high-level control structures to direct
  33.    the dialogue.  In addition, the user can take control and interact
  34.    directly when desired, afterward returning control to the script.
  35.  
  36.    Expectk is a mixture of Expect and Tk.  It behaves just like Expect and
  37.    Tk's wish.  Expect can also be used directly in C, C++, or Python (that
  38.    is, without Tcl).  See libexpect(3).
  39.  
  40.    The name "Expect" comes from the idea of send/expect sequences popular-
  41.    ized by uucp, kermit and other modem control programs.  However unlike
  42.    uucp, Expect is generalized so that it can be run as a user-level com-
  43.    mand with any program and task in mind.  can actually talk to several
  44.    programs at the same time.
  45.  
  46.         +   Cause your computer to dial you back, so that you can login
  47.             without paying for the call.
  48.  
  49.         +   Start a game (e.g., rogue) and if the optimal configuration
  50.             doesn't appear, restart it (again and again) until it does,
  51.             then hand over control to you.
  52.  
  53.         +   Run fsck, and in response to its questions, answer "yes", "no"
  54.             or give control back to you, based on predetermined criteria.
  55.  
  56.         +   Connect to another network or BBS (e.g., MCI Mail, CompuServe)
  57.             and automatically retrieve your mail so that it appears as if
  58.             it was originally sent to your local system.
  59.  
  60.         +   Carry environment variables, current directory, or any kind of
  61.             information across rlogin, telnet, tip, su, chgrp, etc.
  62.  
  63.    There are a variety of reasons why the shell cannot perform these tasks.
  64.    (Try, you'll see.) All are possible with Expect.
  65.  
  66.    In general, Expect is useful for running any program which requires
  67.    interaction between the program and the user.  All that is necessary is
  68.    that the interaction can be characterized programmatically.  Expect can
  69.    also give the user back control (without halting the program being con-
  70.    trolled) if desired.  Similarly, the user can return control to the
  71.    script at any time.
  72.  
  73.    -- Quoted from manpage by Don Libes in the expect 5.20 distribution
  74.  
  75. Advertised architectures:
  76.  
  77.    I do not know of any systems which Expect will not run on.  Systems
  78.    which do not support select or poll can use Expect, but without the
  79.    ability to run multiple processes simultaneously.  I am willing to
  80.    work with you to complete a port.
  81.  
  82.    -- Quoted from README by Don Libes in the expect 5.20 distribution
  83.  
  84. Prerequisites: A version of: Tcl 7.5 or 7.6.  Expect works with Tk
  85.     4.1 or 4.2 and all other extensions compatible with these versions
  86.     of Tcl. Expect 5.24 also supports Tcl 8 and Tk 8.
  87.