I’m executing a TCL system call from a TPS proc, and I’d like for the output of the command that I’m executing to appear in the process log, but this doesn’t happen.
I’ve come up with a better work-around for this problem. I can change:
Code:
set result [system foo.sh 1>&2]
to
Code:
set result [catch {exec sh -c “foo.sh 2>&1” >@ stdout}]
This means that I can only get success/failure of the command and not exact return codes, but that doesn’t bother me too much.
I think the problem is that Cloverleaf has modified the TCL “stdout” channel so that it no longer refers to the operating system “stdout” file descriptor. This seems like a bad decision to me.
Author
Replies
Viewing 0 reply threads
The forum ‘Cloverleaf’ is closed to new topics and replies.