Hello,
I do not know, what kind of application you want to start. If they are
external applications which have to be started via the Tcl command `exec' you
may simply add a `&' on the end of the exec statement (e.g.: exec
some_external_script.sh &).
Of course, that works only, if you does not need the output of the started
command. If you need the output, it is more complicate a little bit.
For example: ...
set pipe [open "|ls -lt $env(HOME)" r]
fileevent $pipe readable [list workOnOutput $pipe]
...
whereby workOnOutput is a Tcl procedure like for example:
proc workOnOutput {pipe} {
if [eof $pipe] {
catch {close $pipe}
} else {
gets $pipe line
... ;# do something with the line
} ;# if
} ;# workOnOutput
However, you should take sorrow, that the command delivers its output line per
line for that example, as the process will be suspended on the `gets' command,
if not a complete line can be read in until the line is complete (ends with
'\n').
If you, however, want to perform Tcl procs via button activation, that cannot
be done so easy. But if you use TclX (Extented Tcl) you are able to use the
`fork' system call to perform parallel execution.
Bye,
Cle.
--
| Clemens Hintze * ACB/EO ____ OMC-R Software Developement
| Phone: +49 30 7002-3241 \ / ALCATEL Mobile Communication Division ITD
| Fax : +49 30 7002-3851 \/ Colditzstr. 34-36, D-12099 Berlin, Germany
| mailto:[EMAIL PROTECTED]