home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1838 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!cs.utexas.edu!sun-barr!olivea!pagesat!spssig.spss.com!uchinews!quads!pynq
  2. From: pynq@quads.uchicago.edu (George Jetson)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Expect: Why doesn't interact have the -re flag?
  5. Summary: Or, is there any way to do explicit I/O to a spawn'd task?
  6. Message-ID: <1992Nov16.023611.24765@midway.uchicago.edu>
  7. Date: 16 Nov 92 02:36:11 GMT
  8. Sender: news@uchinews.uchicago.edu (News System)
  9. Reply-To: pynq@midway.uchicago.edu
  10. Organization: D. J. Dougherty & Associates
  11. Lines: 26
  12.  
  13. I would like to be able to either match strings with reg exps in
  14. interact (and be able to check back to see exactly what was matched)
  15. a la expect (with -re).  I could see no way to do this.
  16.  
  17. Alternatively, if I could do an explicit I/O that would work, too, a la:
  18.  
  19. interact {
  20.     -o foo    { somekindofreadstmthere spawn_id var
  21.         if {var == "bar"} ...
  22.         if {var == "d"} ...
  23.         }
  24.     }
  25.  
  26.  
  27. Well, you get the idea...
  28.  
  29. Any ideas, or do I have to write C code?
  30. (I am using Tcl6.4, and expect 3.23.0)
  31.  
  32. ************************************************************************
  33. I've been told to back off on the diode jokes, but I still don't
  34. like smileys ;-)
  35.  
  36.     - pynq@quads.uchicago.edu, who is still costing the net
  37.       hundreds, if not thousands, of dollars, every time he posts -
  38. ************************************************************************
  39.