🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1856

Re: What is 'expect'

#1856
From: Dan Bernstein
Date: Thu, 29 Nov 1990 03:36
21 lines
1740 bytes
In article <:E37D.6@xds13.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes:
> In article <7316:Nov1408:33:0390@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
> > 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.
> Of course TCL is a whole lot more portable than Perl or PTY. I can run
> TCL on Xenix-286, with no PTY drivers and a compiler that gets the dry
> heaves when faced with Perl.

Yes, and C is a whole lot more portable than TCL. I can run it on
practically every machine bigger than a Sinclair. So?

My point was that a tool is easier to use when you don't have to learn
an entirely new language for it. sh, despite its flaws, is the scripting
language of choice for most UNIX programmers; TCL and Perl are not (yet)
even close to as widely available. A tool like pty can be applied from
any language: sh, TCL, Perl, C, or whatever you like. Why bother
learning a new language just to take advantage of a system feature?

---Dan
Technical Details
Message-ID: <3036:Nov2903:36:3590@kramden.acf.nyu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!cmcl2!kramden.acf.nyu.edu!brnstnd
References: <1990Nov13.212403.11129@iwarp.intel.com> <7316:Nov1408:33:0390@kramden.acf.nyu.edu> <:E37D.6@xds13.ferranti.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!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: <3036:Nov2903:36:3590@kramden.acf.nyu.edu>
Date: 29 Nov 90 03:36:35 GMT
References: <1990Nov13.212403.11129@iwarp.intel.com> <7316:Nov1408:33:0390@kramden.acf.nyu.edu> <:E37D.6@xds13.ferranti.com>
Organization: IR
Lines: 21