Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Procomm capture script stopped capturing data

Procomm capture script stopped capturing data

Procomm capture script stopped capturing data


I'm a PBX tech at a local collage and the script I was using to capture ACD stats on a CS1000 suddenly stopped capturing data.
it worked fine for 2 months and then stopped working. when starting procomm and running script it works fine the first day but the next day it would create the capture file name but would not harvest the data provided to the screen. here is the script.

any help is greatly appreciated

#define DEBUG 0
string fname ;first part of file name
string datefilename ;this is the date part of file name

proc main


set port baudrate 9600 ; 9600
set port databits 8 ; 8
set port parity NONE ; n
set port stopbits 1 ; 1

while 1
clear ;clear screen
fname = "Acdrep1 " ;put the first part of name here leave a space at the end
datefilename = "" ;to ensure string datefilename is empty
call file_date ;calls file_date proc
strcat fname datefilename ;this combines the two string (in this case M1_Log YYYYMMDD)
set capture path "C:\Capture"
set capture file fname ;sets caputure file to the file named in file_date proc
capture on ;turns on capture
waituntil "20:59:57" ;keeps capturing until this time
capture off ;turns capture off
pause 5 ;waits 5 seconds


proc file_date
integer iDay, iMonth, iYear, iHour, iMin, iSec
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt dateFileName "%d%02d%02d" iYear iMonth iDay
strcat dateFileName ".cap"


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close