Reply To: process log files in 5.4

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf process log files in 5.4 Reply To: process log files in 5.4

#59182
David Barr
Participant

    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.