clogin -x fails when cisco prompt gets too long
Rizzo, Joe
JRizzo at ea.com
Wed Feb 12 23:32:01 UTC 2003
Would this be an acceptable fix:
--- clogin.orig Wed Feb 12 15:24:34 2003
+++ clogin Wed Feb 12 15:23:52 2003
@@ -458,7 +458,7 @@
}
regsub -all "\[)(]" $prompt {\\&} reprompt
# match cisco config mode prompts too, but not for catalyst ie:
(enable)
- regsub -all "\[#>]$" $reprompt {(\\([^\\r\\n]+\\))?&} reprompt
+ regsub -all "\[#>]$" $reprompt {(\(config\))?&} reprompt
expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
Thanks,
Joe
More information about the Rancid-discuss
mailing list