You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by jay mortensen <ja...@syrres.com> on 1997/08/19 00:40:01 UTC

mod_cgi/1011: minimal csh CGI won't run, while perl and sh will

>Number:         1011
>Category:       mod_cgi
>Synopsis:       minimal csh CGI won't run, while perl and sh will
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          support
>Submitter-Id:   apache
>Arrival-Date:   Mon Aug 18 15:40:00 1997
>Originator:     jay@syrres.com
>Organization:
apache
>Release:        1.2.1
>Environment:
Linux web2 1.2.1 #10 Mon Jul 1 05:36:57 EDT 1996 i586
>Description:
perl and sh CGIs do work. and the csh script works under apache .8.14 on
the same box, and under a 1.2 b10 on a different linux box running linux 2.0.

the error message seems to indicate that for some reason the CGI handler
is looking for a $home variable?  here's the error log entry

No $home variable set.
[Mon Aug 18 16:32:36 1997] access to /home/jay/public_html/test.cgi
failed for nemesis.syrres.com, reason: Premature end of script headers

here's the script

#!/bin/csh
echo "Content-type: text/html"
echo ""
echo "<HTML>"
echo "test"
echo "</html>\n"
>How-To-Repeat:
http://www.syracuse.ny.us:8080/~jay/test.cgi if you insist on seeing it crash :)

i can produce the same error message on the command line if i unset the HOME
environment variable lihe this:

web2> test.cgi
Content-type: text/html

<HTML>
test
</html>

web2> unsetenv HOME
web2> test.cgi
No $home variable set.
Signal 7
web2> 
>Fix:
nope. i'm hoping you do :%2
>Audit-Trail:
>Unformatted: