For complicated reasons I have to hijack the "puts" routine. I would like to do different things based on what "stream" is
proc myPuts { stream msg } {
if < stream is stdout >
....
elseif < stream is stderr >
...
else
...
}
Is there some way to know if the stream argument is stdout, stderr or a file from inside TCL?
Thanks,