[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#917777: ITP: sexpect -- Expect for Shells



Package: wnpp
Severity: wishlist
Owner: Clark Wang <dearvoid@gmail.com>

* Package name    : sexpect
  Version         : 2.1.8
  Upstream Author : Clark Wang <dearvoid@gmail.com>
* URL             : https://github.com/clarkwang/sexpect
* License         : GPL
  Programming Lang: C
  Description     : Expect for Shells

Expect is for Tcl. Expect.pm is for Perl. Pexpect is for Python. ... But
what for shells?

Quite often, shell scripters need to use Expect to progmatically
interact with another program. The big problem is they don't have time
to learn Tcl's syntax or they don't want to.

I developed "sexpect" which is a single program. It works like GNU
screen. It runs the spawned process on a pty in background as a daemon
and it can talk with the daemon and control the spawned process.

Example:

 # sexpect spawn ssh user@host echo hello world
 # sexpect expect -nocase password:
 # sexpect send -cstring 'password\r'
 # sexpect expect -eof
 # sexpect wait


Reply to: