🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1771

Re: What is 'expect'

#1771
From: Dan Bernstein
Date: Wed, 14 Nov 1990 08:33
17 lines
1372 bytes
In article <1990Nov13.212403.11129@iwarp.intel.com> merlyn@iwarp.intel.com (Randal Schwartz) writes:
> In article <~|&^%V&@rpi.edu>, wrf@mab (Wm Randolph Franklin) writes:
> | The interactive shell 'expect' looks useful according to the long shell
> | summary.  What is it and where would I get it?  Thanks.
> A Perl version with similar interfaces and the same functionality is
> in the works (if you're not interested in learning TCL, but already
> have some Perl experience)... see comp.lang.perl for details.

And if you just want to stick to sh for the automation, do so. Why learn
a different language---whether TCL or Perl---if you don't have to?

Most ``interactive'' programs demand to talk to a tty; you'll have to
use a tool like pty (comp.sources.unix volume 23, or ftp 128.122.128.22)
to make them behave. But replacing ``telnet'' with ``pty telnet'' is a
lot simpler than learning a new language for automation.

---Dan
Technical Details
Message-ID: <7316:Nov1408:33:0390@kramden.acf.nyu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!adm!cmcl2!kramden.acf.nyu.edu!brnstnd
References: <~|&^%V&@rpi.edu> <1990Nov13.212403.11129@iwarp.intel.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!adm!cmcl2!kramden.acf.nyu.edu!brnstnd
From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein)
Newsgroups: comp.unix.shell
Subject: Re: What is 'expect'
Message-ID: <7316:Nov1408:33:0390@kramden.acf.nyu.edu>
Date: 14 Nov 90 08:33:03 GMT
References: <~|&^%V&@rpi.edu> <1990Nov13.212403.11129@iwarp.intel.com>
Organization: IR
Lines: 17