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...
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.