View Single Post
  #5  
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:
Code:
   ...WaitForString(strPrompt)
It could be changed to:
Code:
   ....WaitForStrings(strPrompt, ")#")
And this might actually solve the problem for you without all of the "messy" code ...
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote