Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script for entering TL1 commands..

Status
Not open for further replies.

sramelyk

Technical User
Sep 11, 2003
25
US
I need to wait telnet to a piece of equipment.. Wait for a prompt.. Enter a command.. Then wait 15 minutes. Then loop..

Can anyone help?
 
Something like this should get you started:

proc main
while 1
waitfor "prompt"
transmit "command"
pause 900
endwhile
endproc

Replace prompt and command above with the actual strings (you'll want to add ^M to the end of the command string so that a carriage return is sent and the command processed by the remote system). You may also need to come up with to exit the endless loop unless that is OK in your situation.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top