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 Rancid-discuss@shrubbery.net http://www.shrubbery.net/mailman/listinfo/rancid-discuss