home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!destroyer!ncar!uchinews!quads!pynq
- From: pynq@quads.uchicago.edu (George Jetson)
- Subject: Expect can read its script from stdin, but then interact doesn't work
- Message-ID: <1992Nov12.202657.15587@midway.uchicago.edu>
- Summary: (Subject says it all)
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: pynq@midway.uchicago.edu
- Organization: D. J. Dougherty & Associates
- Date: Thu, 12 Nov 1992 20:26:57 GMT
- Lines: 22
-
- 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.
-
- 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?
-
- ************************************************************************
- I've been told to back off on the diode jokes, but I still don't
- like smileys ;-)
-
- - pynq@quads.uchicago.edu, who is still costing the net
- hundreds, if not thousands, of dollars, every time he posts -
- ************************************************************************
-