httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MUTTON, PETER" <peter.mutt...@bell.ca>
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

Peter

-------- Original Message --------
     Subject: Re: another problem with CGI
        Date: Tue, 4 Jun 2002 00:57:07 -0500
        From: "Ron Wingfield" <dtcrtw@ionet.net>
    Reply-To: users@httpd.apache.org,"Ron Wingfield" <dtcrtw@ionet.net>
Organization: ArchAxis Network Services
          To: users@httpd.apache.org
  References: <Pine.GSO.4.44.0206031717590.2651-100000@lab26.lacfas.hec.ca><001901c20bde$daccb810$0300000a@hammer><20020604074215.A18848@fantomas.sk>

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
     To: users@httpd.apache.org
     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
     does
     -> > 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, uhlar@fantomas.sk ;
     http://www.fantomas.sk/
      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
     remains?

     ---------------------------------------------------------------------

     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
     For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message