scripting "interactive" input

Dan Barrett nullpointer at pobox.com
Mon Nov 17 15:10:27 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 17 November 2003 15:02, Frank Ramsay wrote:
> Does anyone know of a site that has good info on writing scripts that run 
> interactive programs?
> None of these programs are X based, so I am hoping I can use scripts to 
> perform simple "send X
> expect Y" type tests.


expect is the right word -- there's a somewhat-standard TCL package called 
'expect' that's installed by default on lots of boxes.  If not, check it out 
at http://expect.nist.gov/ 
I've used it for a couple of pesky tasks in the past; works as advertised.


Best,
d.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/uSs3sIjNiQTGkXARAicPAJ9+yA4bjlcEMgyYuMUb/kALhpHlIACeOmyk
rpja+zYCBc1VOJBSSrApZB0=
=XTJM
-----END PGP SIGNATURE-----




More information about the Discuss mailing list