Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!snorkelwacker!bloom-beacon!bloom-beacon!jik From: jik@pit-manager.mit.edu (Jonathan I. Kamens) Newsgroups: comp.unix.wizards Subject: Re: Can you redirect /dev/tty? Message-ID: <1990Jul23.085105.18445@athena.mit.edu> Date: 23 Jul 90 11:50:54 GMT References: <330@stubby.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: /mit/jik/.organization Lines: 19 In-Reply-To: skip@stubby.UUCP's message of 20 Jul 90 18:26:08 GMT You should get a hold of Don Libes' "expect" package. It can be ftp'd as pub/expect.shar.Z from durer.cme.nist.gov. You need Tcl to compile it; tcl may be ftp'd as pub/tcl.tar.Z from ucbvax.berkeley.edu, or from pub/tcl.tar.Z on durer.cme.nist.gov (although that version may be older). Expect allows you to manipulate interactive processes in a shell-script sort of way even when they expect to talk to /dev/tty (it uses pty's, as someone has already suggested you use). Note: I've not used expect for anything myself, I just know about it because of correspondence with Don Libes and because I saw him present a paper about it at the most recent Usenix conference. Jonathan Kamens USnail: MIT Project Athena 11 Ashford Terrace jik@Athena.MIT.EDU Allston, MA 02134 Office: 617-253-8495 Home: 617-782-0710