Another way is to use a trace on a variable
or on a procedure though it takes a little bit
of experimentation to get this to work, I have used
it with some success.
Well, a couple of ideas come to mind. If you can use the Blt extension, it provides a bgexec command that is very well suited to this type of situation. Otherwise, about the only other reasonable way to do it in pure Tcl is to start the other program via a pipe, and then read the output of the program through the pipe. Once the program is finished, you'll get an EOF notification on the pipe.
For more information about these techniques, consult the Tcl'ers Wiki,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.