Posted to tcl by apn at Wed Oct 02 14:55:26 GMT 2024view raw
- % package require promise
- 1.1.0
- % set echoCmd [auto_execok echo]
- C:/Windows/System32/cmd.exe /c echo
- % set p1 [promise::pexec {*}$echoCmd First command done]
- ::oo::Obj65
- % set p2 [promise::pexec {*}$echoCmd Second command done]
- ::oo::Obj66
- % $p1 done puts; $p2 done puts
- First command done
- Second command done