Hi All -
I have a script I found on this site (Thanks Knob!) that starts a new capture file on a daily basis. The script is at the bottom of this post.
I have 2 questions:
How does Procomm (by default) determine when to write to this file? It appears to me that it is about once an hour or perhaps when the buffer reaches 64K.
How can I force Procomm to write to this file about every 5 minutes?
TIA
Mike
proc main
string sFileName
string sPath
sPath = "S:\Logs\"
sFileName = getdate()
strcat sPath sFileName
set capture query off
set capture file sFileName
capture ON
when $DATE call newdate
while 1
yield
endwhile
endproc
proc newdate
string sFilename
capture OFF
sFileName = getdate()
set capture file sFileName
capture ON
endproc
func getdate : string
integer iDay, iMonth, iYear, iHour, iMin, iSec
string sFileName
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sFileName "%d%02d%02d" iYear iMonth iDay
strcat sFileName ".TXT"
return sFileName
endfunc
I have a script I found on this site (Thanks Knob!) that starts a new capture file on a daily basis. The script is at the bottom of this post.
I have 2 questions:
How does Procomm (by default) determine when to write to this file? It appears to me that it is about once an hour or perhaps when the buffer reaches 64K.
How can I force Procomm to write to this file about every 5 minutes?
TIA
Mike
proc main
string sFileName
string sPath
sPath = "S:\Logs\"
sFileName = getdate()
strcat sPath sFileName
set capture query off
set capture file sFileName
capture ON
when $DATE call newdate
while 1
yield
endwhile
endproc
proc newdate
string sFilename
capture OFF
sFileName = getdate()
set capture file sFileName
capture ON
endproc
func getdate : string
integer iDay, iMonth, iYear, iHour, iMin, iSec
string sFileName
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sFileName "%d%02d%02d" iYear iMonth iDay
strcat sFileName ".TXT"
return sFileName
endfunc