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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Meridian PBX LD 81 script

Status
Not open for further replies.

rking66

Technical User
Feb 26, 2003
18
US
I am trying to create a script that will help me with port counts that I have to produce for several Meridian PBXs. I currently utilize a script that I created using the record feature in Procomm, but I would like be able to take the values that are captured while the script is running and save them to another file so that they may be totalled or have other calculations performed on them.
Does anyone have any input or possibly a script that I could modify to suit the task? Thank you!
 
You can use fputs to put the values into a file of your choice.

proc file
string File_Name
integer File_Num2=0

strfmt File_Name "c:\%s MCD3100.txt", Switch_Name
if fopen File_Num2 File_Name CREATE TEXT
fputs File_Num2 X
endif
endproc

To go where no programmer has gone before.
 
Thanks for the quick response, dbsquared! Unfortunately, I'm fairly new to Aspect programming, but I am learning and will try to integrate your example code in my script. Are you aware of any text books that may be available that teach Aspect programming in a step-by-step method?
 
Unfortunately, there's not much out there to help you learn ASPECT. My site has links to all (which is not much) of the ASPECT information that I know of. Probably the best thing to do is to review the PDFs that are on the 4.8 CD (they have some tutorial and overview information on ASPECT). Here is a snippet from my site on these files:

Be sure to browse the SAMPLES directory on your Procomm Plus 4.8 CD for sample scripts, as well as the two tutorial PDF files in the SAMPLES\ASPECT directory. Also be sure to read ASPECT.PDF in the DOCS directory on the CD. This file is a high-level overview of ASPECT that serves as a very good introduction to the language, and also includes many sample scripts toward the end of the document. One final source of sample script is ASPECT help file discussions of the various commands as it includes many sample scripts illustrating how the commands are used.

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top