httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: another problem with CGI
Date Tue, 04 Jun 2002 13:44:52 GMT
Under *NIX try:   /usr/bin/dos2unix -ascii <sourcefile> <targetfile>

sourcefile & targetfile can be the same


-------- Original Message --------
     Subject: Re: another problem with CGI
        Date: Tue, 4 Jun 2002 00:57:07 -0500
        From: "Ron Wingfield" <>
    Reply-To:,"Ron Wingfield" <>
Organization: ArchAxis Network Services
  References: <><001901c20bde$daccb810$0300000a@hammer><>

Yes, you've got to remove the ^Ms from your document.  In the future,
(assuming that when you are) using ftp tools such as WS-FTP, the default
is usually for binary transfer, which you should to use for graphic
images such as JPG, GIF, etc.; however, for your html text, be sure to
specify ASCII x'fer!

     ----- Original Message -----
     From: Matus "fantomas" Uhlar
     Sent: Tuesday, June 04, 2002 12:42 AM
     Subject: Re: another problem with CGI
      -> There is ^M at the end of all lines.
     -> what should i do?

     fromdos "file"

     next time transfer text files using "ASCII" transfer mode.

     -> > On Mon, 3 Jun 2002, Lior Hammer wrote:
     -> >
     -> > > i checked it, it's pointing to #!/usr/bin/perl
     -> >
     -> > Did you transfer this from a dos/windows system?  What
     -> > cat -v cgi-script | more
     -> > look like?  If it has funky things (^M) on the end of the
     lines, you
     -> > corrupted your file in transport.
     -> >
     -> > Try deleting the top line entirely and typing it fresh.

      Matus "fantomas" Uhlar, ;
      Warning: I don't wish to receive spam to this address.
      Varovanie: Nezelam si na tuto adresu dostavat akukolvek
     reklamnu postu.
      Despite the cost of living, have you noticed how popular it


     To unsubscribe, e-mail:
     For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message