Code: Select all
# Find out if we're beginning or ending a session
if { [string match "$argv" "end_session"] } {
if { ![file writable $Log] } {
onErrorNotify "4 LOG"
}
set ifd [open $Log a]
puts $ifd "[clock format [clock seconds]]\t$Instrument\t$LogName\t$GroupName"
close $ifd
unset ifd
exit 0
} elseif { [string match "$argv" "begin_session"] == 0 } {
puts stderr "GOTS was called incorrectly!!"
exit -1
}
This is the portion of the script that generates the 2nd accounting time stamp entry. Is the end session behaviour the same between RHEL and Centos. Does it create a flag that is formatted as "end_session"?
This is a VIP priority for us and we are dead in the water for 2 of our 6 instruments.
Thanks