Hello, I'm having an issue with the following script, in that after the code "Transmit cdp" it sends 2 CR's bringing me past where I want to enter the next CDP to out.
proc main
Waitfor "REQ" 3
Transmit "OUT^M"
Waitfor "CUST" 3
Transmit "0^M"
Waitfor "FEAT" 3
Transmit "CDP^M"
Waitfor "TYPE" 3
Transmit "DSC^M"
DSC ()
endproc
proc DSC
string cdp
integer count = 0
fopen 0 "c:/phone/cdp.txt" read
while not feof 0
fgets 0 cdp
Waitfor "DSC" 3
Transmit cdp
count += 1
endwhile
fclose 0
endproc
Here is a copy of the output from my switch:
REQ OUT
CUST 0
FEAT CDP
TYPE DSC
DSC 3011
DSC
MEM AVAIL: (U/P): 45361283 USED U P: 5770566 498228 TOT: 51630077
DISK SPACE NEEDED: 807 KBYTES
REQ 3012
ESN004
REQ
ESN004
REQ 3013
ESN004
REQ
It works at the first DSC prompt but enters past the second giving me the REQ prompt.
Any help would be appreciated
proc main
Waitfor "REQ" 3
Transmit "OUT^M"
Waitfor "CUST" 3
Transmit "0^M"
Waitfor "FEAT" 3
Transmit "CDP^M"
Waitfor "TYPE" 3
Transmit "DSC^M"
DSC ()
endproc
proc DSC
string cdp
integer count = 0
fopen 0 "c:/phone/cdp.txt" read
while not feof 0
fgets 0 cdp
Waitfor "DSC" 3
Transmit cdp
count += 1
endwhile
fclose 0
endproc
Here is a copy of the output from my switch:
REQ OUT
CUST 0
FEAT CDP
TYPE DSC
DSC 3011
DSC
MEM AVAIL: (U/P): 45361283 USED U P: 5770566 498228 TOT: 51630077
DISK SPACE NEEDED: 807 KBYTES
REQ 3012
ESN004
REQ
ESN004
REQ 3013
ESN004
REQ
It works at the first DSC prompt but enters past the second giving me the REQ prompt.
Any help would be appreciated