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!

Determine a Line of text before proceding.

Status
Not open for further replies.

Mjamm

IS-IT--Management
Dec 24, 2001
88
US
I am trying to write a script to delete and add holidays in my Periphonics IVR.

I need to determine if a line date is entered. If the a date exists the script would proceed. If the line stated "No Lines in Buffer" then it would move to a new PROC.
 
Assuming you are talking about text received by Procommm you could use either the waitfor or when target commands to do this. If you look at the discussion of both of those commands in the ASPECT help file, you should get a feel for which command works better for your situation.

If you are reading data from a text file, then you would use the fopen command to open the file, fgets to read the data, then use strfind to search for the necessary text in each line of data. See the fgets command in the ASPECT help file for an example script.
aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top