Re: gcc-compiled CGI + Windoze Apache = Error 500

2006-04-02 Thread René Berber
Dave Korn wrote: > On 01 April 2006 18:03, cshepard wrote: > >> I compile the following code thusly: gcc -o hw.cgi hw.c >> >> #include >> int main(void) { >> printf("Content-type: text/html\n\n"); >> printf("HW"); >> exit(0); >> } > > Gets you two genuine \ns. > >> #!c:/Python

RE: gcc-compiled CGI + Windoze Apache = Error 500

2006-04-02 Thread Dave Korn
On 01 April 2006 18:03, cshepard wrote: > I compile the following code thusly: gcc -o hw.cgi hw.c > > #include > int main(void) { > printf("Content-type: text/html\n\n"); > printf("HW"); > exit(0); > } Gets you two genuine \ns. > #!c:/Python24/python.exe The 'doze nativ

gcc-compiled CGI + Windoze Apache = Error 500

2006-04-01 Thread cshepard
I compile the following code thusly: gcc -o hw.cgi hw.c #include int main(void) { printf("Content-type: text/html\n\n"); printf("HW"); exit(0); } Resulting permissions are 777. The hw.cgi runs fine from both bash and DOSe shells, but Apache/2.0.55 (Win32) produces a 5