write to logfile

 # open the logfile
 set logfile "~/Desktop/abc"
 set logfile_handle [open $logfile a]
 # log the command being sent to Mosflm
 puts $logfile_handle "aaaa"
 # close the logfile
 close $logfile_handle

原文地址:https://www.cnblogs.com/greencolor/p/2135042.html