Does any one know how to capture the output of command called from a TCL script?
I cannot figure this out. I've been working on it for 4 hours now 
Does any one know how to capture the output of command called from a TCL script?
I cannot figure this out. I've been working on it for 4 hours now 
You can use puts or you can pipe the output:
Running other programs from Tcl - exec, open
Or use other tools e.g. script.
In expect you can define log file by:
log_file -noappend expect.log
...