Help,
I am fairly new to Procomm Plus....Here is what I am atempting to accomplish.
I am using Procomm (4.8) to interface with our Inter-Tel PBX to track inboud and outbound calls. I need to capture the terminal output to a file as calls are logged in the terminal window. I tried to use a file called 'capture.wax', but does not continually run....it runs briefly and only creates a single capture. I need it to write to a text file as call come in and go out. I am sure that its simple, just can't put my finger on it. Anyway, here is the current script I am trying:
proc main
string Fname = "file.cap" ;File that holds the screen shots.
string pathname ;Path to the Capture directory.
dial DATA "Call Log" ; Dial Call Log entry.
while $DIALING ; Loop while dialing.
endwhile
set capture file Fname ; Set name of capture file.
set capture overwrite ON
fetch capture path pathname ;Command to find the current path to the Aspect directory.
capture on ; Open up the capture file.
while $CARRIER ; Loop while connected to remote.
yield ; Yield processing time
endwhile
capture off ; Close the capture file.
endproc
TIA
Wayne Boyd
I am fairly new to Procomm Plus....Here is what I am atempting to accomplish.
I am using Procomm (4.8) to interface with our Inter-Tel PBX to track inboud and outbound calls. I need to capture the terminal output to a file as calls are logged in the terminal window. I tried to use a file called 'capture.wax', but does not continually run....it runs briefly and only creates a single capture. I need it to write to a text file as call come in and go out. I am sure that its simple, just can't put my finger on it. Anyway, here is the current script I am trying:
proc main
string Fname = "file.cap" ;File that holds the screen shots.
string pathname ;Path to the Capture directory.
dial DATA "Call Log" ; Dial Call Log entry.
while $DIALING ; Loop while dialing.
endwhile
set capture file Fname ; Set name of capture file.
set capture overwrite ON
fetch capture path pathname ;Command to find the current path to the Aspect directory.
capture on ; Open up the capture file.
while $CARRIER ; Loop while connected to remote.
yield ; Yield processing time
endwhile
capture off ; Close the capture file.
endproc
TIA
Wayne Boyd