<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><base href="x-msg://201/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Off the top of my head, it could be either the shell or pager not being called correctly. When you run it manually you <div>will be in a specific shell, but when run from cron, it will be using root's default. Can you try exporting the shell in the </div><div>crontab ? </div><div><br></div><div>Cheers, </div><div>Gareth </div><div><br><div><div>On 31 May 2013, at 2:01 AM, Chuck Liggett <<a href="mailto:chuck.liggett@mongoosemetrics.com">chuck.liggett@mongoosemetrics.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-US" link="blue" vlink="purple" style="font-family: Calibri; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">While querying a Juniper SRX 650 firewall cluster from a CentOS 6.4 box running Rancid 2.3.6 (rpm from Epel), Expect 5.44.1.15,<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">where Rancid is run out of /etc/cron.d/rancid and scheduled every quarter hour:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Several times a day, I get excess revisions where it looks as though a Juniper Rancid command appears in the body of the config as if more than one command is being sent in response to a prompt.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><br>Every time I run it manually in expect debugging mode, it does not experience the issue.<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Here's an illustration:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">Index: configs/firewall<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">===================================================================<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">- -- configs/firewall (revision 619)<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">@@ -2,6 +2,7 @@<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<span class="Apple-converted-space"> </span><a href="mailto:username@host.domain.com" style="color: purple; text-decoration: underline; ">username@host.domain.com</a>> show chassis clocks<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<span class="Apple-converted-space"> </span><a href="mailto:username@host.domain.com" style="color: purple; text-decoration: underline; ">username@host.domain.com</a>> show chassis environment<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">+ # show chassis firmware<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # node0:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # --------------------------------------------------------------------------<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # Class Item Status<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Sometimes, the commands are well within the body of other command output, like in this example:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">Index: configs/firewall<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">===================================================================<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">- -- configs/firewall (revision 604)<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">@@ -4,6 +4,7 @@<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<span class="Apple-converted-space"> </span><a href="mailto:username@host.domain.com" style="color: purple; text-decoration: underline; ">username@host.domain.com</a>> show chassis environment<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # node0:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # --------------------------------------------------------------------------<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">+ # show chassis firmware<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # Class Item Status<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # Temp Routing Engine OK <o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # Routing Engine CPU OK <o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">@@ -36,6 +37,7 @@<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # FPC 0 O/S Version 11.4R6.6 by builder on 2013-01-05 1<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # FPC 2 O/S Version 11.4R6.6 by builder on 2013-01-05 1<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # FWDD O/S Version 11.4R6.6 by builder on 2013-01-05 1<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">+ # show chassis fpc detail<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # node1:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # --------------------------------------------------------------------------<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">@@ -46,6 +48,7 @@<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # {primary:node0}<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> #<span class="Apple-converted-space"> </span><a href="mailto:username@host.domain.com" style="color: purple; text-decoration: underline; ">username@host.domain.com</a>> show chassis fpc detail<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; ">+ # show chassis hardware detail<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # node0:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # --------------------------------------------------------------------------<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 10.5pt; font-family: Consolas; "> # Slot 0 information:<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Does anyone have any suggestions?<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Thank you!<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; ">Chuck<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div></div>_______________________________________________<br>Rancid-discuss mailing list<br><a href="mailto:Rancid-discuss@shrubbery.net" style="color: purple; text-decoration: underline; ">Rancid-discuss@shrubbery.net</a><br><a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" style="color: purple; text-decoration: underline; ">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a></div></blockquote></div><br></div></body></html>