Hi, I'm trying to write an Aspect script to print reports on available DNs and TNs (2000 and 500) on a Nortel PBX.
Here's the section of script in question:
transmit "LD 20^M"
waitfor "REQ: "
transmit "PRT^M"
waitfor "TYPE: "
transmit "LUDN^M"
waitfor "CUST "
transmit "^M"
waitfor "DN "
transmit "^M"
waitfor "REQ: "
transmit "LUVU^M"
Once all the DNs have finished printing, but *before* the next "REQ:" prompt appears, the "LUVU" transmit is executed. Since this happens before the "REQ:" prompt, the PBX doesn't receive the command and the script stops at the "REQ:" prompt waiting for a command that's already been sent. Here's a sample of the output:
6957 6966 6967 6970 6971 6974 6976 6980
6985 6986 6987 717 718 7190 7191 7192
7193 7194 7195 7196 7197 7198 79 81
82 83 86 87 LUVU
REQ:
I can get around this using waitquiet or pause commands in my script, but that's a hack and I'd rather solve this properly.
I can't make any sense of why this is happening. Any help is appreciated.
Thanks.
Here's the section of script in question:
transmit "LD 20^M"
waitfor "REQ: "
transmit "PRT^M"
waitfor "TYPE: "
transmit "LUDN^M"
waitfor "CUST "
transmit "^M"
waitfor "DN "
transmit "^M"
waitfor "REQ: "
transmit "LUVU^M"
Once all the DNs have finished printing, but *before* the next "REQ:" prompt appears, the "LUVU" transmit is executed. Since this happens before the "REQ:" prompt, the PBX doesn't receive the command and the script stops at the "REQ:" prompt waiting for a command that's already been sent. Here's a sample of the output:
6957 6966 6967 6970 6971 6974 6976 6980
6985 6986 6987 717 718 7190 7191 7192
7193 7194 7195 7196 7197 7198 79 81
82 83 86 87 LUVU
REQ:
I can get around this using waitquiet or pause commands in my script, but that's a hack and I'd rather solve this properly.
I can't make any sense of why this is happening. Any help is appreciated.
Thanks.