probably you are using a "DOS like" editor like Notepad to edit the 
helloworld.sh script file. This add a CR/LF sequence at the end of each 
lines instead of a single LF. If you are using UltraEdit or any other 
good editor probably you can choose to save the file in Unix format 
elsewhere use these commands to strip the CR chars:

# cat helloworld.sh | tr -d '\r' > helloworld1.sh
# cp helloworld1.sh helloworld.sh

Sergio

cchechio wrote:
> 
> 
> I am using this example
> 
> http://www.acmesystems.it/?id=209 <http://www.acmesystems.it/?id=209>
> 
> but i obtain this error when i type
> http://192.168.0.91/cgi/helloworld.sh 
> <http://192.168.0.91/cgi/helloworld.sh>
> 
> 502 Bad Gateway
> The CGI was not CGI/1.1 compliant.
> 
> Can you help me?

Reply via email to