[rancid] Re: Extreme Issue

john heasley heas at shrubbery.net
Mon Nov 2 21:46:07 UTC 2009


Mon, Nov 02, 2009 at 03:39:07PM -0600, Peder:
> expect: does "S200-B:2 # " (spawn_id exp4) match regular expression
> "\u0008+"? no
> "^[^\n\r *]*.? ?S200-B:\[0-9\]+ #"? no
> "^[^\n\r]*.? ?S200-B:\[0-9\]+ #."? no
> "^--More--[\r\n]+"? no
> "[\n\r]+"? no
> "[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no
> "^ *--More--[^\n\r]*"? no
> "^<-+ More -+>[^\n\r]*"? no

your expect is broken.  the 2nd or 3rd regex above should have matched.
Also, it should not hang.  even with this regex failure, it should
eventually timeout.

we've seen it before that timing (target or network speed) affect expect/tcl.


More information about the Rancid-discuss mailing list