Re: [rancid] end of run not found

'heasley' <[email protected]> Mon, 17 Dec 2018 21:28:58 +0000
Newsgroups gmane.network.rancid
Message-ID <[email protected]>
Sat, Dec 15, 2018 at 01:05:23PM +0000, Wayne Eisenberg:
> There you go. The dell.pm is looking for 
> if (/[>#]\s?exit$/)
> but these switches don't put the exit statement on a separate line (or maybe we don't see it because of the ' tr/\015//d;' statement right before the if statement ). In any case, the end of the session looks like:
> TCO-CORE>exitConnection to tco-core closed.
> 
> So get rid of the $ at the end of the expression, and it works.

cat5rancid does it this way:
    if (/> \(enable\) ?exit(?:$|Connection)/) {
more pedantic...

_______________________________________________
Rancid-discuss mailing list
[email protected]
http://www.shrubbery.net/mailman/listinfo/rancid-discuss