In an eight step Telnet process which waits for queues then sends keystrokes, how do I get a loop in place for just one step, where the text inputed is drawn from a text file?
Script:
proc main
; TELNET INTO THE CONTROLLER
connectmanual telnet "89.1.16.105"
; CHOOSE 1 SELECT UNIT
waitfor "SELECT UNIT" Forever
waitfor "ENTER SELECTION : ^[[24;32H" Forever
waitquiet 3
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO CHANGE THE SHELF
waitfor "SHELF=" Forever
waitfor "ENTER SELECTION : ^[[24;32H"
transmit "1"
waitquiet 1
transmit "^M"
; ENTER THE SHELF NUMBER
waitfor "ENTER SHELF : ^[[24;28H" Forever
transmit "3"
waitquiet 1
transmit "^M"
; CHOOSE 2 TO CHANGE THE SLOT
waitfor "ENTER SELECTION : " Forever
transmit "2"
waitquiet 1
transmit "^M"
;THIS STEP BELOW IS WHERE I NEED TO PULL FROM A DATA FILE!!!!
; ENTER THE SLOT NUMBER
waitfor "ENTER SLOT : ^[[24;27H" Forever
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 3 TO ENTER THE SHELF AND SLOT CHOSEN
waitfor "ENTER SELECTION : ^[[24;32H" Forever
transmit "3"
waitquiet 1
transmit "^M"
waitquiet 2
; CHOOSE 7 FOR DIAL BACKUP
waitfor "DIAL BACKUP" forever
waitfor "ENTER SELECTION : ^[[24;32H" Forever
transmit "7"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO GO TO DIAL BACKUP
waitquiet 1
waitfor " GO TO DIAL BACKUP" Forever
waitfor "ENTER SELECTION : ^[[24;32H" Forever
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO DIAL STORED NUMBER
waitquiet 1
waitfor "DIAL STORED NUMBER" Forever
waitfor "ENTER SELECTION : ^[[24;32H"
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO DIAL THE FIRST STORED NUMBER
waitfor "ENTER NUMBER TO DIAL :" Forever
waitquiet 3
transmit "1"
waitquiet 1
transmit "^M"
waitquiet 1
endproc
Script:
proc main
; TELNET INTO THE CONTROLLER
connectmanual telnet "89.1.16.105"
; CHOOSE 1 SELECT UNIT
waitfor "SELECT UNIT" Forever
waitfor "ENTER SELECTION : ^[[24;32H" Forever
waitquiet 3
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO CHANGE THE SHELF
waitfor "SHELF=" Forever
waitfor "ENTER SELECTION : ^[[24;32H"
transmit "1"
waitquiet 1
transmit "^M"
; ENTER THE SHELF NUMBER
waitfor "ENTER SHELF : ^[[24;28H" Forever
transmit "3"
waitquiet 1
transmit "^M"
; CHOOSE 2 TO CHANGE THE SLOT
waitfor "ENTER SELECTION : " Forever
transmit "2"
waitquiet 1
transmit "^M"
;THIS STEP BELOW IS WHERE I NEED TO PULL FROM A DATA FILE!!!!
; ENTER THE SLOT NUMBER
waitfor "ENTER SLOT : ^[[24;27H" Forever
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 3 TO ENTER THE SHELF AND SLOT CHOSEN
waitfor "ENTER SELECTION : ^[[24;32H" Forever
transmit "3"
waitquiet 1
transmit "^M"
waitquiet 2
; CHOOSE 7 FOR DIAL BACKUP
waitfor "DIAL BACKUP" forever
waitfor "ENTER SELECTION : ^[[24;32H" Forever
transmit "7"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO GO TO DIAL BACKUP
waitquiet 1
waitfor " GO TO DIAL BACKUP" Forever
waitfor "ENTER SELECTION : ^[[24;32H" Forever
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO DIAL STORED NUMBER
waitquiet 1
waitfor "DIAL STORED NUMBER" Forever
waitfor "ENTER SELECTION : ^[[24;32H"
transmit "1"
waitquiet 1
transmit "^M"
; CHOOSE 1 TO DIAL THE FIRST STORED NUMBER
waitfor "ENTER NUMBER TO DIAL :" Forever
waitquiet 3
transmit "1"
waitquiet 1
transmit "^M"
waitquiet 1
endproc