'''Example-1:''' ====== tk_messageBox -message "before" exec -- [auto_execok cmd] << { notepad sleep 5 } & tk_messageBox -message "after" ====== With example-1, everything works as expected: 1. the start message appears - it has to be confirmed 1. notepad starts (this by itself is an asynchron process) 1. sleep starts 1. the stop message appears immediately (because the whole ''cmd'' is started in background with '''&''') 1. after 5 seconds sleep ends 1. notepad is still running * The main window of the tk prog stays responsive all the time.- ---- '''Example-2:''' ====== tk_messageBox -message "before" exec -- [auto_execok cmd] << { notepad sleep 5 } tk_messageBox -message "after" ====== With example-2, things are slightly different: 1. the start message appears - it has to be confirmed 1. notepad starts 1. sleep starts 1. the stop message appears immediately (because the whole ''cmd'' is started in background with '''&''') 1. after 5 seconds sleep ends 1. notepad is still running * The main window of the tk prog stays responsive all the time.- ---- !!!!!! %| enter categories here |% !!!!!!