From: Ed R. <er...@pa...> - 2002-04-17 21:31:01
|
Tin...@Te... writes: > Thanks for your help. I am actually interacting with a Riverstone router. > > A similar command on Riverstone is cli set terminal rows 0, but I am still > seeing some control characters. Oops, I should have looked just a little closer at your email - that's not quite Cisco syntax, is it? Anyway, going back to your original query, when your Expect code was matching against the router prompt, since the Riverstone was re-echoing the entire line, including the prompt, you were matching too early. Suggest you get C-Kermit or another decent terminal emulator and use it in debug mode to see exactly what the Riverstone is sending you during a session - then you can program for it as needed. You might have success using a pattern that ends with "\Z" (end of buffer), since the example you sent us earlier didn't show any junk at the end of the buffer. Also, look further in your Riverstone docs, maybe you can find some way to turn off the formatting. |