<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Did you have a ‘sendmail’ symlink available under /usr/lib (32bits) or /usr/lib64 (64bits) ?<div class="">ls -l /usr/lib64/sendmail</div><div class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 11, 2015, at 2:29 PM, Tanner - <<a href="mailto:namelessjoe@hotmail.com" class="">namelessjoe@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div dir="ltr" class=""><br class="Apple-interchange-newline">I have postfix installed and it has a sendmail clone function that works from the command line i changed the<div class=""><br class=""></div><div class=""> no -t $MAILOPTS <br class=""><br class="">to sendmail -t $MAILOPTS and i still get an error is it a path issue or what am i not understanding</div><div class=""><br class=""></div><div class=""><div class="">Trying to get all of the configs.</div><div class="">All routers sucessfully completed.</div><div class=""><br class=""></div><div class="">cvs diff: Diffing .</div><div class="">cvs diff: Diffing configs</div><div class="">cvs commit: Examining .</div><div class="">cvs commit: Examining configs</div><div class="">/usr/local/rancid/var/CVS/networking/configs/198.210.70.10,v  <--  configs/198.210.70.10</div><div class="">new revision: 1.12; previous revision: 1.11</div><div class="">/usr/local/rancid/bin/control_rancid: 483: /usr/local/rancid/bin/control_rancid: sendmail: not found</div><div class=""><br class=""></div><div class="">ending: Wed Mar 11 10:27:32 CDT 2015</div></div><div class=""><br class=""></div><div class=""><div class=""><hr id="ecxstopSpelling" class="">From:<span class="Apple-converted-space"> </span><a href="mailto:grungelizard9@hotmail.com" class="">grungelizard9@hotmail.com</a><br class="">To:<span class="Apple-converted-space"> </span><a href="mailto:lee.e.rian@census.gov" class="">lee.e.rian@census.gov</a>;<span class="Apple-converted-space"> </span><a href="mailto:namelessjoe@hotmail.com" class="">namelessjoe@hotmail.com</a>;<span class="Apple-converted-space"> </span><a href="mailto:rancid-discuss@shrubbery.net" class="">rancid-discuss@shrubbery.net</a><br class="">Subject: RE: [rancid] Rancid 3.1 control_rancid errors when there are diffs<br class="">Date: Wed, 11 Mar 2015 11:29:18 -0400<br class=""><br class=""><div dir="ltr" class="">I have a similar issue running 3.1.99, but using postfix.  I get the error "/home/rancid/bin/control_rancid: 631: /home/rancid/bin/control_rancid: -t: not found".  I had the same issue before upgrading (was running 3.1).  "        ) |  -t $MAILOPTS" is the line of the control_rancid where it hangs.  Any help is greatly appreciated.<div class=""><br class=""></div><div class=""><div class=""> if [ $MAXSZ -eq 0 ] ; then</div><div class="">        (</div><div class="">          echo "To: $mailrcpt"</div><div class="">          echo "Subject: $subject"</div><div class="">          echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'</div><div class="">          echo ""</div><div class="">          cat $TMP.diff</div><div class="">   <span style="background-color: rgb(255, 255, 0);" class=""><span class="Apple-converted-space"> </span>    ) |  -t $MAILOPTS</span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""># Additional options for sendmail(8).</div><div class="">#MAILOPTS="-f<span class="Apple-converted-space"> </span><a href="mailto:bounces.go.here@example.com" class="">bounces.go.here@example.com</a>"; export MAILOPTS</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">Trying to get all of the configs.</div><div class="">All routers sucessfully completed.</div><div class=""><br class=""></div><div class="">cvs diff: Diffing .</div><div class="">cvs diff: Diffing configs</div><div class="">cvs commit: Examining .</div><div class="">cvs commit: Examining configs</div><div class="">/home/rancid/var/rancid/CVS/demo-vpn/configs/imp_620,v  <--  configs/imp_620</div><div class="">new revision: 1.30; previous revision: 1.29</div><div class="">/home/rancid/bin/control_rancid: 631: /home/rancid/bin/control_rancid: -t: not found</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><hr id="ecxstopSpelling" class="">From:<span class="Apple-converted-space"> </span><a href="mailto:lee.e.rian@census.gov" class="">lee.e.rian@census.gov</a><br class="">To:<span class="Apple-converted-space"> </span><a href="mailto:namelessjoe@hotmail.com" class="">namelessjoe@hotmail.com</a>;<span class="Apple-converted-space"> </span><a href="mailto:rancid-discuss@shrubbery.net" class="">rancid-discuss@shrubbery.net</a><br class="">Date: Wed, 11 Mar 2015 14:58:12 +0000<br class="">Subject: Re: [rancid] Rancid 3.1 control_rancid errors when there are diffs<br class=""><br class=""><div id="ecxdivtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: 'Times New Roman', Times, serif;" class="">I had the same problem after building rancid on a machine that didn't have sendmail installed.  Install sendmail and edit control_rancid to change all the<br class="">  no -t $MAILOPTS<br class="">to<br class="">  sendmail -t $MAILOPTS<br class=""><br class=""><br class="">Regards,<br class="">Lee<br class=""><br class=""><br class=""><br class=""><br class=""><div style="color: rgb(33, 33, 33);" class=""><hr tabindex="-1" style="display: inline-block; width: 710.5px;" class=""><div id="ecxdivRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Rancid-discuss <<a href="mailto:rancid-discuss-bounces@shrubbery.net" class="">rancid-discuss-bounces@shrubbery.net</a>> on behalf of Tanner Lyle <<a href="mailto:namelessjoe@hotmail.com" class="">namelessjoe@hotmail.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, March 11, 2015 10:07 AM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:rancid-discuss@shrubbery.net" class="">rancid-discuss@shrubbery.net</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>[rancid] Rancid 3.1 control_rancid errors when there are diffs</font><div class=""> </div></div><div class=""><div dir="ltr" class=""><font size="4" class="">I have installed rancid 3.1 and have it working on a Ubuntu install.  It works and collects diffs and shows them in the repository and i have the cvs web working, but i cannot get it to e-mail me the diffs and am getting an error in the var/logs only when there are diffs.  it errors on the control_rancid portion of it i can send mail through postfix with both the sendmail and mail command.  I installed postfix after sendmail fail as i thought it was my problem.  Below is the log of both and the control_rancid, and yes i am a newbie</font><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><font size="4" class=""><br class=""></font></div><div class=""><font size="4" class=""><b class="">rancid log when there are no changes</b></font></div><div class=""><br class=""></div><div class=""><div class="">rancid@lyle ~/var/logs $ tail -f networking.20150311.080400 </div><div class="">starting: Wed Mar 11 08:04:00 CDT 2015</div><div class=""><br class=""></div><div class=""><span style="font-size: 12pt;" class="">Trying to get all of the configs.</span></div><div class="">All routers sucessfully completed.</div><div class=""><br class=""></div><div class="">cvs diff: Diffing .</div><div class="">cvs diff: Diffing configs</div><div class="">cvs commit: Examining .</div><div class="">cvs commit: Examining configs</div><div class=""><br class=""></div><div class="">ending: Wed Mar 11 08:05:14 CDT 2015</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><font size="4" class=""><b class="">rancid log when there are changes</b></font></div><div class=""><br class=""></div><div class=""><div class="">rancid@lyle ~/var/logs $ tail -f networking.20150311.083546 </div><div class="">starting: Wed Mar 11 08:35:46 CDT 2015</div><div class=""><br class=""></div><div class=""><span style="font-size: 12pt;" class="">Trying to get all of the configs.</span></div><div class="">All routers sucessfully completed.</div><div class=""><br class=""></div><div class="">cvs diff: Diffing .</div><div class="">cvs diff: Diffing configs</div><div class="">cvs commit: Examining .</div><div class="">cvs commit: Examining configs</div><div class="">/usr/local/rancid/var/CVS/networking/configs/foundryswitch,v  <--  configs/foundryswitch</div><div class="">new revision: 1.11; previous revision: 1.10</div><div class="">/usr/local/rancid/bin/control_rancid: 483: /usr/local/rancid/bin/control_rancid: no: not found</div><div class=""><br class=""></div><div class="">ending: Wed Mar 11 08:37:07 CDT 2015</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><font size="4" class=""><b class="">control_rancid                  line 483 is the     ) | no -t $MAILOPTS</b></font></div><div class=""><br class=""></div><div class=""><div class=""># Mail out the diffs (if there are any).</div><div class="">if [ -s $TMP.diff ] ; then</div><div class="">    MAXSZ=${MAILSPLIT:=0}</div><div class="">    if [ $MAXSZ -ne 0 ] ; then</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>BLOCKSIZE=1024; export BLOCKSIZE</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>tmpk=`perl -e "my(@S) = stat(\"$TMP.diff\"); print int(<a href="smb://$S[7]" class="">\\$S[7]</a><span class="Apple-converted-space"> </span>/ 1024);"`</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>unset BLOCKSIZE</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>if [ $tmpk -lt $MAXSZ ] ; then</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   MAXSZ=0</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>fi</div><div class="">    fi</div><div class="">    if [ $MAXSZ -eq 0 ] ; then</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>(</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span> echo "To: $mailrcpt"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span> echo "Subject: $subject"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span> echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span> echo ""</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span> cat $TMP.diff</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span><b class="">) | no -t $MAILOPTS</b></div><div class="">    else</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>CDIR=`pwd`</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>SDIR=${TMPDIR:=/tmp}/rancid.$GROUP.$$.mail</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>error=`mkdir $SDIR`</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>if [ $? -ne 0 ] ; then</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   echo "Could not create $SDIR directory" >&2</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   echo $error >&2</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>else</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   cd $SDIR</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   split -b${MAXSZ}k $TMP.diff</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   nfiles=`ls | wc -l | sed -e 's/^ *//' |cut -d' ' -f1`</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   n=0</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   dt=`perl -e 'print time();'`</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   for file in `ls`; do</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>n=`expr $n + 1`</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>MSGID="<$dt.RANCID$GROUP$$${nfiles}${n}@`hostname`>"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>(</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>echo "To: $mailrcpt"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>echo "Subject: $n of ${nfiles}: $subject"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>echo "Message-Id: $MSGID"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>if [ $n -gt 1 ] ; then</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   echo "References: $LASTIDS"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>fi</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>echo "$MAILHEADERS" | awk '{L = "";LN = $0;while (LN ~ /\\n/) { I = index(LN,"\\n");L = L substr(LN,0,I-1) "\n";LN = substr(LN,I+2,length(LN)-I-1);}print L LN;}'</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>echo ""</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>cat $file</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>) | no -t $MAILOPTS</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>LASTIDS="$LASTIDS $MSGID"</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>if [ $n -lt $nfiles ]; then</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   # this just tries to make the msgs order right in MUAs</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   sleep 1</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>fi</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   done</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   cd $CDIR</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>   rm -rf $SDIR</div><div class=""><span class="ecxApple-tab-span" style="white-space: pre;"></span>fi</div><div class="">    fi</div><div class="">fi</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div><br class="">_______________________________________________ Rancid-discuss mailing list<span class="Apple-converted-space"> </span><a href="mailto:Rancid-discuss@shrubbery.net" class="">Rancid-discuss@shrubbery.net</a><span class="Apple-converted-space"> </span><a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" class="">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></div></div></div></div></div></div></div></div><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Rancid-discuss mailing list</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Rancid-discuss@shrubbery.net" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Rancid-discuss@shrubbery.net</a><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://www.shrubbery.net/mailman/listinfo/rancid-discuss" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://www.shrubbery.net/mailman/listinfo/rancid-discuss</a></div></blockquote></div><br class=""></div></body></html>