<br><br><div class="gmail_quote">On Wed, Feb 3, 2010 at 8:05 AM, Martin Barry <span dir="ltr"><<a href="mailto:marty@supine.com">marty@supine.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
$quoted_author = "Brian Lam" ;<br>
<div class="im">><br>
> it looks like it's not looping anymore but it's not updating any of the f10<br>
> switches (the previous working f10 are not updated either). rancid log shows<br>
> the following for all force10 router:<br>
<br>
</div>I think it might be because it has a two stage "quit" rather than just<br>
needing a different command.<br>
<div class="im"><br>
<br>
> maybe i will target the stanza instead and have better luck. the loop<br>
> output is below. the first 'exit' works but the 2nd on throws an error '%<br>
> Invalid input detected at '^' marker.'<br>
<br>
</div>Try something like<br>
<br>
"Invalid input detected at" { # F10 two stage quit<br>
send -h "quit\r"<br>
exp_continue;<br>
<div><div></div><div class="h5"> }<br>
<br></div></div></blockquote><div><br><br>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.<br>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
<br>
cheers<br>
Marty<br>
_______________________________________________<br>
Rancid-discuss mailing list<br>
<a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Brian Lam | IT/Operations | Rockyou, Inc. | Phone: 408-425-9801 | AIM: brianclam2<br>