process log files in 5.4

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf process log files in 5.4

  • Creator
    Topic
  • #48617
    David Barr
    Participant

      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.

    Viewing 0 reply threads
    • Author
      Replies
      • #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.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.