Writing to the process error file (<process name.err>)

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Writing to the process error file (<process name.err>)

  • Creator
    Topic
  • #53543
    Abe Rastkar
    Participant

      I was wandering if there is a way to write to the process error file from within a TPS proc.

    Viewing 2 reply threads
    • Author
      Replies
      • #78083
        Eric Fortenberry
        Participant

          By writing to stderr, the output should go the error log.

          For example:

          Code:

          puts stderr “This should go to the error log.”

        • #78084

          Eric Fortenberry wrote:

          By writing to stderr, the output should go the error log.

          For example:

          Code:

          puts stderr “This should go to the error log.”

          That would be nice if it worked that way, but you’ll find that that line will print to the process.log, not the process.err file.

          However, it will be added as an ERR line.

          Example output:

          Code:

          [tcl :err :ERR /0:  test_stderr:03/01/2013 10:12:04] This should go to the error log.

          -- Max Drown (Infor)

        • #78085
          Eric Fortenberry
          Participant

            Thanks for setting me straight.  I thought that I had written to the process.err log in the past using that technique, but looking into it deeper, I think that I was using the “error” command to write to the process.err file.

            Code:

            error “This is an ERROR message.”

            Unfortunately, I’m betting that this wasn’t exactly what Abe was looking for.

            Just when you think you understand…  ðŸ˜‰

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