Use the command "aptitude install tofrodos" to install dos2unix. This command get the file and clear the "^M".<br><br><br>Regards,<br>Rodrigo Lang.<br><br><div class="gmail_quote">2010/8/25 Zeeshan Zakaria <span dir="ltr"><<a href="mailto:zishanov@gmail.com">zishanov@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><p>Actually I have found the problem, and leanred some new stuff along with it.</p>
<p>Apparently all Linux files have a mime type information stored in them, which can be checked using command:</p>
<p>file -i <filename></p>
<p>For my extensions.ael, which I copied from a different server, the mime type is 'text/x-c' whereas all the other files have mime type 'text/plain'. Now if I create a new file extemsions.maelstrom on this machine which is by default 'text/plain', there are no errors on doing 'ael reload', however using extensions.maelstrom with mime type 'text/x-c' gives errors, though the code works fine.</p>
<p>How it got mime type 'text/x-c' on the other machine, Vim which I use there assigned it this mime type. I'll have to fix it there.</p>
<p>Now I am trying to figure out how to convert between mime types. A simpler solution is to just copy text to a new file, but would be nice to do a proper conversion.</p><div class="im">
<p>Zeeshan A Zakaria</p>
<p>--<br>
<a href="http://www.ilovetovoip.com" target="_blank">www.ilovetovoip.com</a></p>
</div><p></p><blockquote type="cite">On 2010-08-25 12:01 PM, "Watkins, Bradley" <<a href="mailto:Bradley.Watkins@compuware.com" target="_blank">Bradley.Watkins@compuware.com</a>> wrote:<br><br>
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font> </div><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font face="Tahoma" size="2"><p><font color="#500050"><br>From: <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] On B...</font></p>
<div class="im">
<b>Sent:</b> Wednesday, August 25, 2010 11:43 AM<p><font color="#500050"><br>To: Asterisk Users Mailing List - Non-Commercial Discussion</font></p><b>Subject:</b> Re:
[asterisk-users] AEL - what is error: ael.flex:647 ael_yylex:Unhandled
char(s):<br></div></font><br></div><p><font color="#500050">That's what I understood too from this one and probably only related google search result, but even ...</font></p><div class="im"><p><span><font color="#0000ff" face="Arial" size="2">Is there
any chance that these files were edited on a Windows machine and then copied
back to the Asterisk boxes? That is, are there some nefarious ^m
characters hiding in there?</font></span></p>
<p><span><font color="#0000ff" face="Arial" size="2"></font></span> </p>
<p><span><font color="#0000ff" face="Arial" size="2">Regards,</font></span></p>
<p><span><font color="#0000ff" face="Arial" size="2">-
Brad</font></span></p>
<p></p></div></div>
<br><div class="im">--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Rodrigo Lang<br><a href="http://rodrigorecipes.blogspot.com/2010/08/ssh-rapido-e-pratico.html" target="_blank">http://rodrigorecipes.blogspot.com/</a><br>
<br>