[rancid] Re: expect script help
Brian Lam
blam at rockyou.com
Wed Feb 3 22:58:58 UTC 2010
On Wed, Feb 3, 2010 at 8:05 AM, Martin Barry <marty at supine.com> wrote:
> $quoted_author = "Brian Lam" ;
> >
> > it looks like it's not looping anymore but it's not updating any of the
> f10
> > switches (the previous working f10 are not updated either). rancid log
> shows
> > the following for all force10 router:
>
> I think it might be because it has a two stage "quit" rather than just
> needing a different command.
>
>
> > maybe i will target the stanza instead and have better luck. the loop
> > output is below. the first 'exit' works but the 2nd on throws an error
> '%
> > Invalid input detected at '^' marker.'
>
> Try something like
>
> "Invalid input detected at" { # F10 two stage quit
> send -h "quit\r"
> exp_continue;
> }
>
>
works like a charm. thank you so much. my mistake was the i didn't use
'exp_continue'! :p rookie mistake. it's about time to get pick up a book
on Expect.
> cheers
> Marty
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
--
Brian Lam | IT/Operations | Rockyou, Inc. | Phone: 408-425-9801 | AIM:
brianclam2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100203/2c7a8f1f/attachment.html
More information about the Rancid-discuss
mailing list