Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple capture files ina script ? 1

Status
Not open for further replies.

willy113

Programmer
Apr 27, 2004
33
US
Hi Procomm+ Rep,

I am having issues writing to a 2nd capture file in my script after it does succesfully creates it in the capture directory under Procomm+.
My main capture file that starts at the start of my script and closes at the end still works fine.
But when I issue a command to my UUT and the data scrolls down the screen, no data is written to capture file number 2, but does create it and leaves it with a file length = 0 ?
The command reference does not say if multiple capture files can be run in parallel, and the "capture OFF|ON" Procomm+ command has no passed parameter for which file to control, so it appears that multiple files cannot be controlled ??
Any help on this would be appreciated ...


Best Regards,

Bill Lusche
Sr. Development Engineer
 
You can only have one capture file open at a time, but you should be able to open one file, receive data, close it, and repeat the process with a second capture file. Are you actually trying to capture to two files at the same time or one after another?

 
Hi Knob,

I am actually trying to open a 2nd file after the 1st one is open to capture some terminal data from a command that fills 2-5 screens full of data, so that answers my question.

I would rather leave the 1st "master" capture file alone and make a new way to capture comport/telnet data and store to a file, then do string search manipulations on a file, SINCE the WAITFOR command is not working trying to grap the comport/telnet data in multiple WAITFOR commands in succession.

Can I use the comread & termwrites commands on a data stream
and then do strfind searches to find the numerous data searches I need to find, something like below ??

set aspect rxdata ON
while $RXDATA
comread szData 1
termwrites szData
if strfind target_stream szData
strcat c_targeted szData
else
c_targeted=""
return 0
endif
if strfind c_targeted target_stream
c_targeted=""
return 1
endif
endwhile
return 0
endfunc

Best Regards,

Bill Lusche
Sr. Development Engineer
 
I think you might have better luck if you use the sbsave command to save the entire scrollback buffer to a text file, then search through that for the information you are looking for, rather than try to read the incoming data. Make sure you use the termreset command at the beginning of the script so any data from previous connections is wiped from the scrollback buffer.

 
Hi Knob,

Thanks for the tip on using the sbsave command !
This works much better than either using the RGET, COMREAD
or other commands to grap chars at a time and then process them.
I also noticed that Procomm+ supports up to 1300 scrollback
pages, but does that take up extra memory or present any other issues if it is set that high ?
- Any reccomended settings for this feature ?
- Also is a scrollback page equal to 25 lines x 80 characters
worth of data ?? (2000 bytes)

Best Regards,

Bill Lusche
Sr. Development Engineer
 
I believe the scrollback page is equivalent to whatever you have your lines and rows set for in that particular emulation.

There is a small memory hit for each additional scrollback page, but I believe it is fairly negligible if I remember past discussions correctly.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top