TCL File Create

  • Creator
    Topic
  • #49529
    Brian Sweetland
    Participant

    I have a TCL proc to log my msg count. By default, my file writes to the directory.

    How do I change my

Viewing 1 reply thread
  • Author
    Replies
    • #62334
      Robert Milfajt
      Participant

      I noticed that you need to reverse the slashes, i.e., C:tempmsgcnt needs to be C:/temp/msgcnt/ in TCL.

      Try this:

      lappend msg_cntr_log $startdate

      lappend msg_cntr_log $starttime

      lappend msg_cntr_log $msg_cntr

      set msg_cntr_log [join $msg_cntr_log t]

      set file “C:/temp/msgcnt/msg_cntr.log”

      set logfile [open $file a+]

      puts $logfile $msg_cntr_log;flush $logfile

      close $logfile

      Hope this helps,

      Robert Milfajt
      Northwestern Medicine
      Chicago, IL

    • #62335
      Brian Sweetland
      Participant

      Perfect. Thanks.

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10