From: ccos Date: 2002-05-11T05:16:55+09:00 Subject: Premature end of script headers --Apple-Mail-2--195175693 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed hello, i'm new to ruby, unix, apache, and cgi, so i feel like i'm wrestling a four headed dragon, well more like wrestling a three headed dragon and patting a friendly goat. i keep getting: Premature end of script headers: /Library/WebServer/CGI- Executables/cgiTrial2.cgi in my apache error log. im running os x with Marc Liyanage's distro, freshly installed. i don't think it's not a permissions problem, the file is chmod 755'd. my file is called cgiTrial2.cgi and contains: #!/usr/local/bin ruby << i think this is right? print "HTTP/1.0 200 OK\r\n" print "Content-type: text/html\r\n\r\n" print "Hello World!\r\n" this is saved as an asci file w/ unix breaks. any ideas? thanks much, _c --Apple-Mail-2--195175693 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII hello, i'm new to ruby, unix, apache, and cgi, so i feel like i'm wrestling a four headed dragon, well more like wrestling a three headed dragon and patting a friendly goat. i keep getting: Premature end of script headers: /Library/WebServer/CGI-Executables/cgiTrial2.cgi in my apache error log. im running os x with Lucida GrandeMarc Liyanage's distro, freshly installed. i don't think it's not a permissions problem, the file is chmod 755'd. my file is called cgiTrial2.cgiLucida Grande and contains: #!/usr/local/bin ruby <<<< i think this is right? print "HTTP/1.0 200 OK\r\n" print "Content-type: text/html\r\n\r\n" print "<<Hello World!<<\r\n" this is saved as an asci file w/ unix breaks. any ideas? thanks much, _c --Apple-Mail-2--195175693--