[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CGI Problem...



On Tue, 28 Nov 2000, Rafael Azevedo wrote:
> Hi Cobalts,
> 
>     I'm having a bad time trying to run a cgi-script, this is the error
> message:
> 
> "[Mon Nov 27 23:25:12 2000] [error] [client 200.182.182.227] malformed
> header from script. Bad header=Bareword found where operator :
> /usr/cgiwrap/cgiwrap".
> 
>     Why am I receiving this error message? The script won't run for some
> reason, why?
> 
 Assuming the script doesn't actully have a syntax error in it(that's
basiclly what the error is telling you) you probably uploaded it in binary
mode instead of ascii mode from a pc...either upllaod it again in ascii
mode of use dos2unix to fix it...

Uploading in binary mode from a dos/windows machine leaves cr's at the end
of each line, but unix only uses lf's for the end of a line...

Note: the config for some ftp clients has a place where you can tell it
how to upload based on extension, adding .pl there should help in the
future so it gueses right