Apache/Perl question

David Hummel dhml at comcast.net
Fri Aug 19 17:21:02 EDT 2005


On Fri, Aug 19, 2005 at 04:58:23PM -0400, Ronny Serrano 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.

Here is a command line utility that will do it:

  http://www.thefreecountry.com/tofrodos/

Also check your system for the "dos2unix" program.  On my Debian system,
dos2unix is a symlink to the fromdos program.

-David



More information about the Discuss mailing list