View Single Post
Old 07-27-2018, 10:17 AM
bgagnon bgagnon is offline
VanDyke Technical Support
Join Date: Oct 2008
Posts: 4,207
Hi Ranier,

A colleague more versed than I in "Cisco-ese" suggested the following:

Seeing as how all shell prompts (from commands you can enter on Cisco routers) end with ")#" (and in the Cisco command reference ")#" never appeared anywhere *BUT* at the end of a shell prompt in such a sub-mode configuration), you might try this:

Wherever you have a line of code that says:
It could be changed to:
   ....WaitForStrings(strPrompt, ")#")
And this might actually solve the problem for you without all of the "messy" code ...

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote