<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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>
</head>
<body ocsi="0" fpstyle="1" style="margin: 4px 4px 1px; font: 10pt Tahoma;" link="blue" lang="EN-NZ" vlink="purple">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">&nbsp;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?&nbsp; Try running dos2unix on the template file which should fix it.<br>
<br>
Steve<br>
</div>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;"><strong>Steve Shipway</strong></div>
<div style="font-family: Tahoma; font-size: 13px;">University of Auckland ITS</div>
<div style="font-family: Tahoma; font-size: 13px;"><em>UNIX Systems Design Lead</em></div>
<div style="font-family: Tahoma; font-size: 13px;"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family: Tahoma; font-size: 13px;">Ph: &#43;64 9 373 7599 ext 86487</div>
<div style="font-family: Tahoma; font-size: 13px;"><em></em>&nbsp;</div>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF368384"><font size="2" color="#000000" face="Tahoma"><b>From:</b> mrtg-bounces&#43;s.shipway=auckland.ac.nz@lists.oetiker.ch [mrtg-bounces&#43;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>&nbsp;&nbsp;&nbsp; ...</div>
<div>&nbsp;&nbsp;&nbsp; cfgdir=&quot;/home/mrtg/cfgs-err&quot;<br>
&nbsp;&nbsp;&nbsp; workdir=&quot;/home/mrtg/workdir&quot;<br>
&nbsp;&nbsp;&nbsp; router=&quot;router1&quot;<br>
&nbsp;&nbsp;&nbsp; cfgmaker --global &quot;WorkDir:$workdir/&quot; --global &quot;LogFormat: rrdtool&quot; --if-template=interface-errors.template '--if-filter=$default &amp;&amp; ($if_type==30 || $if_type==32)'&nbsp; --output $cfgdir/$router-err.cfg
<a href="mailto:public@$router:::::2" target="_blank">public@$router:::::2</a></div>
<div>&nbsp;&nbsp;&nbsp; ...</div>
<div>&nbsp;</div>
<div>I get:</div>
<div>&nbsp;&nbsp;&nbsp; Evaluation of the contents in the file</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; interface-errors.template<br>
&nbsp;&nbsp;&nbsp; gave the error</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; &quot;Can't find string terminator &quot;<br>
&nbsp;&nbsp;&nbsp; ECHO&quot; anywhere before EOF at (eval 13) line 26, &lt;IF_TEMPLATE&gt; line 65.<br>
&nbsp;&nbsp;&nbsp; &quot;</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp; Exiting cfgmaker<br>
</div>
<div>&nbsp;</div>
<br>
</div>
</div>
</div>
</body>
</html>