Example-1:
tk_messageBox -message "before" exec -- [auto_execok cmd] << { notepad sleep 5 } & tk_messageBox -message "after"
With example-1, everything works as expected:
# the start message appears # notepad starts # sleep starts # the stop message appears immediately (because everything is started in background with '''&''') # after 5 seconds sleep ends # notepad is still running
Example-2:
tk_messageBox -message "before" exec -- [auto_execok cmd] << { notepad sleep 5 } tk_messageBox -message "after"
enter categories here |
---|