Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!gatech!prism!dali.gatech.edu!mikeg From: mike@penguin.gatech.edu (Mike Gourlay) Newsgroups: comp.sys.hp Subject: `expect' works for HPUX now Keywords: expect tty HPUX telnet Message-ID: <1990Dec12.093456@dali.gatech.edu> Date: 12 Dec 90 14:34:56 GMT Sender: news@prism.gatech.EDU Reply-To: mike@penguin.gatech.edu (Mike Gourlay) Organization: Georgia Tech Lines: 44 Folks, I asked a while ago if expect worked for HPUX. The answer was, "no", but it does now. Many people sent me mail about it, and I lost some of it, so here's the scoop: I talked to Don Libes (the author of expect) about it, and we worked out the System V incompatibilities. You can now get a copy of expect from durer.cme.nist.gov via anonymous ftp, or get it by mail using their server. I don't know how the mail thing works. 'expect' has a C library, but one command does not work on HPUX, and I suspect it's the fault of HPUX, and not 'expect' because it works on other systems. I'd like some HP people to try to get the expect library routine 'exp_fexpect' to work. Until HP or NIST fix that bug, we programmers need to use the command 'exp_expect' instead of 'exp_fexpect'. Read the expect man page for details. There is one last HPUXism, which is that getdtablesize is not implemented. Add this to the appropriate source file: ---------------------------------------------- #include int getdtablesize() { return (sysconf(_SC_OPEN_MAX)); } ----------------------------------------------- Thanks to Ian Hogg at Control Data Corp. for the above routine. He tells me that he has some other such routines. Expect works well for me. Don is receptive to bug reports, so please report them. expect is not extremely complicated, so any remaining BSD SYSV incompatibilities should be fixable, and I'd like the fixed if they exist. So would Don Libes. He admits that he has not previously had any demand for expect to work on SYSV machines. That means that people are not speaking up, not that there is no demand, because I got quite a mail response about my posting from people who wanted it to work. Mike Gourlay mike@pengun.gatech.edu