home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / tcl / 1275 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
  2. From: karl@NeoSoft.com (Karl Lehenbauer)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: Help with expect inside TK/TCL
  5. Message-ID: <1992Aug31.115941.7252@NeoSoft.com>
  6. Date: 31 Aug 92 11:59:41 GMT
  7. References: <1992Aug24.192950.23077@bwdls61.bnr.ca>
  8. Organization: NeoSoft Communications Services -- (713) 684-5900
  9. Lines: 14
  10.  
  11. In article <1992Aug24.192950.23077@bwdls61.bnr.ca> muradia@bnr.ca writes:
  12. >I have a progam written in TK/TCL that needs to invoke a program written in expect
  13. >What is the best way to do this? I do not want to exec the expect program since
  14. >it require some user input that I want to handle with TK. Any help would be 
  15. >appreciated.
  16.  
  17. If you link Extended Tcl in with Tcl and Tk, you can use the "system"
  18. command, as in:
  19.  
  20.     system "expect... &"
  21. -- 
  22. -- Email info@NeoSoft.com for info on getting interactive Internet access.
  23. You will now awaken feeling relaxed and refreshed, remembering everything 
  24. you've read except the details of the Omega contingency plan.
  25.