home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!sun-barr!olivea!pagesat!spssig.spss.com!uchinews!quads!pynq
- From: pynq@quads.uchicago.edu (George Jetson)
- Newsgroups: comp.lang.tcl
- Subject: Expect: Why doesn't interact have the -re flag?
- Summary: Or, is there any way to do explicit I/O to a spawn'd task?
- Message-ID: <1992Nov16.023611.24765@midway.uchicago.edu>
- Date: 16 Nov 92 02:36:11 GMT
- Sender: news@uchinews.uchicago.edu (News System)
- Reply-To: pynq@midway.uchicago.edu
- Organization: D. J. Dougherty & Associates
- Lines: 26
-
- I would like to be able to either match strings with reg exps in
- interact (and be able to check back to see exactly what was matched)
- a la expect (with -re). I could see no way to do this.
-
- Alternatively, if I could do an explicit I/O that would work, too, a la:
-
- interact {
- -o foo { somekindofreadstmthere spawn_id var
- if {var == "bar"} ...
- if {var == "d"} ...
- }
- }
-
-
- Well, you get the idea...
-
- Any ideas, or do I have to write C code?
- (I am using Tcl6.4, and expect 3.23.0)
-
- ************************************************************************
- 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 -
- ************************************************************************
-