This is the script I am trying to adjust. The variables sShelf, sSlot, and sStored are pulled off a text file. When I implement the if/else statement it keeps inputting the first variable from the text file.
I need it to get to a point where it will pick up with teh next set of numbers...
No matter where I place the Restart: the script does not pick up where the variables left off. It keeps restarting at the beginning.
Am I missing something obvious?
That's great. Next question:
How do I use the ELSE statement with a GOTO statement that would point m,e back to the top of this script? (Where do I GOTO?)
proc main
string sLine
string sShelf
string sSlot
string sStored
if fopen 0 "d:modems1-4.txt" READ TEXT...
In the below excerpt, is there a way to remove the "Forever" from the waitfor statement and replace it with an "else" statement that would send us back to the start of the script?
THANKS!
waitfor "ENTER SHELF : ^[[24;28H" Forever
transmit sShelf
transmit "^M"
In the below script excerpt, is there a way to direct the script to look in the a: or d: drive for the text file "nychips1.txt"?
if fopen 0 "nychips1.txt" READ TEXT
; TELNET INTO THE CONTROLLER
connectmanual telnet "89.1.16.101
(assumes the data has already been read in from a file and is in the variable sLine):
Knob,
One more please. I cannot get the script (sLine) to reference my data.txt file and ge the variables ? ? ?
In the first few steps in the script below, is there a way to have the shelf number pulled from one text file and the slot number pulled from another. (In other words, I need the numbers transmitted in both those steps to be grabbed from a text file. Can I use the same text file and separate...
That worked great, THANKS!
The final piece of the puzzle is to loop the entire script below until the data.txt file has no more lines.
(The overall goal is to telnet in to the controller card and enter different slots on the rack (as per the data.txt file) and executing the steps to put that...
OH NO!
No matter what I do I cannot get two digits transmitted. If I do it manually with transmit lines I need to transit one digit, waitquiet 1, then transmit the second digit. I believe the delay exists on the Adtran controller I am telnetted into. Is there a way to modify the file below...
KNOB, YOU TOTALLY ROCK!
But ... one last question (I hope)
How do i set it up to grab one OR two digit numbers from the text file? (the parameters are 1-15)
THANKS!!!!!
The line that reads:
; ENTER THE SLOT NUMBER
waitfor "ENTER SLOT : ^[[24;27H" Forever
transmit "1"
waitquiet 1
transmit "^M"
It is the data transmitted during this step that will be pulled from a text file. All...
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...
How do I redirect my script in a loop to grab the two variables below being transmitted (in this case a 1) from an alternate file?
; CHOOSE 1 TO CHANGE THE SHELF
waitfor "SHELF=" Forever
waitfor "ENTER SELECTION : [24;32H"
transmit "1"...
Is there a way to scan a screen of output for a particular string, then fire off the next line of the script? (As opposed to Waiting for the string to appear.)
When Telnetting into my Adtran device I need to issue a WaitQuiet command, but experience a delay because the prompt I waiting for is...
It seems so simple, but still not working.
proc main
connectmanual telnet "89.1.16.105"
while $DIALING
yield
endwhile
transmit "1^M"
endproc
I just want to see the 1 get transmitted at this point, but I still hear the error beep.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.