That's what test2.tcl in this [http://www.itworld.com/AppDev/4061/swol-1218-regex/] "Regular Expressions" [http://www.regularexpressions.com] column does. Also see the [fileevent] page. The sample chapter 22 from [Brent Welch]'s book can be downloaded from his home page and ( "TK Examples", or "TK by Example" ) [http://www.beedub.com/book/3rd/Tkexampl.pdf] also gives an example of this. ---- The link on top may not clarify this at a glance. I myself was thinking about opportunities with pipes and send, and how to handle remote command execution with both methods. See [Playing with Pipes, Send and DDE] - [RJM] Reference to [text] widget. ---- [Category GUI]