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!

Loop dialing telnet hosts

Status
Not open for further replies.

joeb5110

Technical User
May 8, 2009
42
US
Can someone point me to a reference that discusses dialing host directory entries? I have a simple script to telnet connect to an entry, do a few list commands, and exit. I'd like to loop to the next directory entry, repeat the list commands, and so on. There's probably a DO WHILE CONNECTED or something to that effect. I've browsed through a lot of documentation, but can't seem to figure this one out. It seems like this would be a common procedure.
Thanks.
 
Put your directory entries into a stem and do:

DO i = 1 TO stem.0

assuming you have set stem.0 to the number of entries
 
Thank you. I thought there would be a command that references the host directory, similar to Procomm, but this worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top