Apache/Perl question
John Abreau
john.abreau at zuken.com
Fri Aug 19 18:53:28 EDT 2005
On Fri, 19 Aug 2005 16:58:23 -0400
"Ronny Serrano" <RSerrano at heartsonfire.com> wrote:
> Thanks to everyone who pitched in with ideas on this. Turns out my
> apache config needed to be tweaked a little. Then I was getting 500
> errors. After 2 hours I found that it was because the damn Vi for
> Windows was puttng the wrong carriage returns in the script and the
> server was blowing up. The linux server just didn't like how the
> carriage returns were formatted. When I write a simple script in vi
> right on the linux box, it works fine.
>
> Anyone know of a good freeware editor that would convert a windows
> notepad formated text file to unix/linux format.
I would generally use perl for that:
perl -pi -e 's/\r$//' foo.html
--
John Abreau
IT Manager
Zuken USA
238 Littleton Rd., Suite 100
Westford, MA 01886
T: 978-392-1777 F: 978-692-4725
M: 978-764-8934
E: John.Abreau at zuken.com W: www.zuken.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.blu.org/pipermail/discuss/attachments/20050819/6fdf845a/attachment.sig>
More information about the Discuss
mailing list