home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dove!cme!libes
- From: libes@cme.nist.gov (Don Libes)
- Newsgroups: comp.lang.tcl
- Subject: Re: Expect can read its script from stdin, but then interact doesn't work
- Message-ID: <20191@muffin.cme.nist.gov>
- Date: 16 Nov 92 21:25:18 GMT
- References: <1992Nov12.202657.15587@midway.uchicago.edu>
- Organization: National Institute of Standards and Technology
- Lines: 29
-
- In article <1992Nov12.202657.15587@midway.uchicago.edu> pynq@midway.uchicago.edu writes:
- >I'm just curious if this is something that will be fixed or if it is a
- >builtin deficiency. I spent a fair amount of time tearing my hair over
- >this one - I couldn't understand why my script was mysteriously
- >terminating itself at the interact statement.
- >
- >My shell script was something like:
- >
- > nawk '...' | expect -
- >
- >where nawk builds up the script and pipes it to expect.
-
- This is (almost) funny. The whole point of Expect is to get around
- programs that make assumptions that the user must be reached via
- /dev/tty.
-
- >I would have expected stdin/stdout to be forced to something like
- >/dev/tty before the interact is executed. Is there some way I can cause
- >this to happen?
-
- Yeah, get an older version (:-) It actually used to work as you want
- it to. I ran into a case where that was clearly wrong. So I changed
- it. I should've provided access for /dev/tty through a reserved
- spawn_id. I just didn't have the foresight.
-
- How about "dev_tty_spawn_id"? "devtty_spawn_id"? "tty_spawn_id"?
- ("user_spawn_id" already refers to stdin/out.)
-
- Don
-