in reply to telnet to router

Please read the formatting directions at the bottom of the posting box--especially the one about putting <code></code>tags around your code.

Algorithmically, what you probably need to do is waitfor either the "CR to continue" string or the prompt, and loop back as long as you keep getting the former.