<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE>
<!--
-->
</STYLE>
<STYLE>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Verdana}
@font-face
        {font-family:"Arial Narrow"}
@font-face
        {font-family:Webdings}
@font-face
        {font-family:Consolas}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-right:0cm;
        margin-left:36.0pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
span.HTMLPreformattedChar
        {font-family:Consolas}
span.EmailStyle19
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</STYLE>
<STYLE id=owaParaStyle type=text/css>P {margin-top:0;margin-bottom:0;}</STYLE>
<META content="MSHTML 6.00.6000.17092" name=GENERATOR></HEAD>
<BODY lang=EN-NZ style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma" vLink=purple link=blue fpstyle="1" ocsi="0">
<DIV>Nope, dos2unix didn't work... same error.</DIV>
<DIV> </DIV>
<DIV><BR><BR>>>> Steve Shipway <s.shipway@auckland.ac.nz> 11/9/2010 4:15 PM >>><BR></DIV>
<DIV style="FONT-SIZE: 13px; COLOR: rgb(0,0,0); DIRECTION: ltr; FONT-FAMILY: Tahoma">
<DIV> Sounds like your template file is corrupt.<BR><BR>Check the template file to see if there is a trailing ^M or space on the ECHO lines -- possibly it has been messed up by Windows and has the \n at the end of the lines changed to \r\n? Try running dos2unix on the template file which should fix it.<BR><BR>Steve<BR></DIV>
<DIV><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><STRONG>Steve Shipway</STRONG></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">University of Auckland ITS</DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><EM>UNIX Systems Design Lead</EM></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><A href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</A></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma">Ph: +64 9 373 7599 ext 86487</DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: Tahoma"><EM></EM> </DIV></DIV></DIV>
<DIV style="FONT-SIZE: 16px; COLOR: rgb(0,0,0); FONT-FAMILY: Times New Roman">
<HR tabIndex=-1>
<DIV id=divRpF368384 style="DIRECTION: ltr"><FONT face=Tahoma color=#000000 size=2><B>From:</B> mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Arvon Griffiths [Arvon.Griffiths@txdot.gov]<BR><B>Sent:</B> Wednesday, 10 November 2010 10:36 a.m.<BR><B>To:</B> mrtg<BR><B>Subject:</B> [mrtg] gvolk's interface-errors.template not working now...<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV>When I run my script:</DIV>
<DIV> ...</DIV>
<DIV> cfgdir="/home/mrtg/cfgs-err"<BR> workdir="/home/mrtg/workdir"<BR> router="router1"<BR> cfgmaker --global "WorkDir:$workdir/" --global "LogFormat: rrdtool" --if-template=interface-errors.template '--if-filter=$default && ($if_type==30 || $if_type==32)' --output $cfgdir/$router-err.cfg <A href="mailto:public@$router:::::2" target=_blank>public@$router:::::2</A></DIV>
<DIV> ...</DIV>
<DIV> </DIV>
<DIV>I get:</DIV>
<DIV> Evaluation of the contents in the file</DIV>
<DIV> </DIV>
<DIV> interface-errors.template<BR> gave the error</DIV>
<DIV> </DIV>
<DIV> "Can't find string terminator "<BR> ECHO" anywhere before EOF at (eval 13) line 26, <IF_TEMPLATE> line 65.<BR> "</DIV>
<DIV> </DIV>
<DIV> Exiting cfgmaker<BR></DIV>
<DIV> </DIV><BR></DIV></DIV></DIV><PRE>===================
Texas Transportation Forum
www.texastransportationforum.com
</PRE></BODY></HTML>