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

Re: [cobalt-users] Problem with CGI Script on a Qube 2



Yes, that was the error. Thanks for the response. Actually the script was
saved directly to the server over our internal network. Has anyone found a
way to save scripts directly from a Window$ machine while stripping out the
carriage returns? It would save the additional step of having to upload the
script via FTP.

Stephen Sloan
MINCO Corporation
http://www.mincocorp.com
Comprehensive Real Estate Services


> It sounds like the file was edited on a Windows system and then ftp'd to
> the server in binary mode. Windows puts and carriage return+linefeed at
> the end of a line, Unix only uses linefeed. Therefore the system will be
> looking for an executable called '/usr/bin/perl^M' not '/usr/bin/perl'.
> Simple solution is to ftp the file to the server in ASCII mode.
>
> or
>
> sed -e 's/^M//g' scriptname > newscript
>
> while on the server.
>
> ^M represents the ctrl-M character.
>