Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!dftsrv!iris613.gsfc.nasa.gov!merritt From: merritt@iris613.gsfc.nasa.gov (John H Merritt) Newsgroups: comp.sys.sgi Subject: Installing expect Message-ID: <4394@dftsrv.gsfc.nasa.gov> Date: 21 Feb 91 22:55:16 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: merritt@iris613.gsfc.nasa.gov (John H Merritt) Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 37 Has anyone successfully installed 'expect' on an SGI (>= 3.3.1)? Expect is Don Libes' creation which 'Cures Those Uncrontrollable Fits of Interaction' :-) It is available from durer.cme.nist.gov in pub/. I get complaints about too many programs being spawned and the possiblity of being out of pty's. I have successfully compilied the program without errors, however, I cannot get to function properly. For example, I get the following error messages for a simple telnet session. ---- cut ---- error in command: spawn telnet scfvm too many programs spawned? - out of ptys ---- cut ---- And the input to expect is: ---- cut ---- #! /usr/local/bin/expect -d spawn telnet scfvm expect {*Please*} {} send L\r expect {*SESSION*} {} send L Y3JHM\r expect {*password:*} {} send huminm\r expect {*Ready;*} interact ---- cut ---- By the way, I installed it on a Sun 386i and this input file works as expected. John H. Merritt --> merritt@iris613.gsfc.nasa.gov Applied Research Corporation at NASA/GSFC "Yesterday I knew nothing, today I know that." Brought to you by Super Global Mega Corp .com