Re: Why I need to click twice to destroy a top level window?



* "pheobe" <pheobe.du@xxxxxxxxx>
| By the way:
|
| exec wish.exe b.tcl

Just a guess: 'exec' in TCL does not terminate the current process
like e.g. in sh or perl. 'exec' executes the command, waits for it to
finish *and then continues the current TCL script*. So yes, after the
'exec', the current 'wish' is still running, the exec'd wish is not.

R'
.



Relevant Pages

  • Re: Killing a thread/program after calling it
    ... I have to constantly calling a program through "exec", ... This will be called on in a loop inside a script. ... Is there any way that, each time I call program_a.exe, I can let tcl ... twapi.magicsplat.com) has the end_process command to terminate ...
    (comp.lang.tcl)
  • Re: open command
    ... if using exec to open something it inconsistently hangs the program ... which one hangs. ... runs on one embedded version that is where I write my tcl code, ... If it is embedded tcl version. ...
    (comp.lang.tcl)
  • Re: Q: How to determine if a process has been terminated
    ... parent process you get the pid returned from the fork call; ... any pid and delete it from the list, ... calls to exec (which is actually called "system" in the C/ APUE ... There seems to be no set of corresponding commands in Tcl though. ...
    (comp.lang.tcl)
  • Re: Problem in calling c programs and compiling them in tcl/tk
    ... using exec gcc filename.c and later exec ./a.out filename.c. ... use their exit status for abnormal exits, and that has spoilt the Tcl ... If the "single worst design mistake in Tcl" is really something with a trivial 1-line fix, then Tcl must surely be perfection! ...
    (comp.lang.tcl)
  • Re: Catch result of external program using exec (in linux)
    ... Les Cargill wrote: ... Plain 'exec' should do the trick as well if the other program ... He wants to capture the output in his Tcl script. ... Oh, and with a pipe, one can use fileevent and the event loop ...
    (comp.lang.tcl)