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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carriage return loop

Status
Not open for further replies.

mposey

Technical User
Dec 1, 2005
2
US
I cannot figure out how to create a "^m" loop until I get a certain response back. The waitfor command doesn't work well because my responses from my switch are not always the same. I have search for a good resolution but have not been able to make anything work. Any help or suggestions would be greatly appreciated.
 
You might try using the WaitList procedure that another user here sent me sometime back. It uses when target commands to look for specific strings and can take action depending on which one (or none) were received. You could use it to look for each of the possible strings that could be returned and then act as necessary depending on which particular string was sent. You can find it at the below link:


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top