Changeset 40136 in project


Ignore:
Timestamp:
05/25/21 11:46:59 (3 weeks ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [78.85.49.153]: Added Dependencies and Installing sections, as well as a couple of notes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/expect

    r40132 r40136  
    22
    33Chicken scheme binding to libexpect
     4
     5Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really makes this stuff trivial. Expect is also useful for testing these same applications.
    46
    57=== Author
     
    79Aydar Zarifullin
    810
     11=== Repository
     12
     13[[https://github.com/iZarif/ckn-expect|https://github.com/iZarif/ckn-expect]]
     14
     15=== Dependencies
     16
     17* Linux
     18* sh
     19* libtcl
     20* libexpect
     21
     22'''Note''': Windows is not supported.
     23
     24=== Installing
     25
     26==== Debian-based system
     27
     281. Install the dependencies
     29
     30 apt install tcl-dev tcl-expect-dev
     31
     322. Tell the compiler where the Tcl header files are located by setting the CSC_OPTIONS environment variable
     33
     34 CSC_OPTIONS="-I/usr/include/tcl"
     35
     363. Install this egg
     37
     38 chicken-install expect
     39
     40==== Arch-based system
     41
     421. Install the dependencies
     43
     44 pacman -S expect
     45
     462. Determine the Expect version
     47
     48 expect -version
     49
     503. Create a symlink
     51
     52 ln -s /usr/lib/expect<version>/libexpect<version>.so /usr/lib/libexpect.so
     53
     54Where <version> is the number from the previous step
     55
     564. Install this egg
     57
     58 chicken-install expect
     59
    960=== Documentation
    10 
    11 Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect really makes this stuff trivial. Expect is also useful for testing these same applications.
    1261
    1362<procedure>(call-with-process-io cmd proc)</procedure>
    1463
    15 Fork a new process and executes {{cmd}} then call {{proc}} which should be a procedure of three arguments: the input, output, and PID of the sub-process.
     64Forks a new process and executes {{cmd}} via Bourne shell then call {{proc}} which should be a procedure of three arguments: the input, output, and PID of the sub-process.
     65
     66'''Note''': The input and output ports will not be closed if {{proc}} raises an error
    1667
    1768While it is possible to use {{read-line}} to read information from a process spawned by {{call-with-process-io}}, more convenient function are provided.
Note: See TracChangeset for help on using the changeset viewer.