You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Slemko <ma...@znep.com> on 1997/08/19 16:30:03 UTC
Re: mod_cgi/1011: minimal csh CGI won't run, while perl and sh will (fwd)
The following reply was made to PR mod_cgi/1011; it has been noted by GNATS.
From: Marc Slemko <ma...@znep.com>
To: Apache bugs database <ap...@apache.org>
Subject: Re: mod_cgi/1011: minimal csh CGI won't run, while perl and sh will (fwd)
Date: Tue, 19 Aug 1997 08:24:23 -0600 (MDT)
---------- Forwarded message ----------
Date: Tue, 19 Aug 1997 09:19:40 -0400
From: jay mortensen <ja...@nemesis.syrres.com>
Reply-To: jay@syrres.com
To: marc@hyperreal.org, Dean Gaudet <dg...@arctic.org>
Subject: Re: mod_cgi/1011: minimal csh CGI won't run, while perl and sh will
marc & dean
thanks for your responses. i apologize for submitting the support request
before waiting for help from the newsgroup.
Marc wrote:
> As Dean said, one of your .cshrc or similar files is
> running things or your csh is _really_ brain dead.
> Not an Apache problem.
still doesn't make sense (details below)
i wouldn't be so quick to call this "not an Apache problem", since it ONLY
appears in 1.2.1. i currently have .8.14 running on the same box on a different
port and the same script runs fine. so at the minimum, if this isn't a PROBLEM
per se, there is some difference in how the two versions handle the CGI
On Aug 18, 4:01pm, Dean Gaudet wrote:
> Subject: Re: mod_cgi/1011: minimal csh CGI won't run, while perl and sh wi
>
>
> On Mon, 18 Aug 1997, jay mortensen wrote:
>
> > #!/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:
>
> csh absolutely sucks as a scripting language. You shouldn't use it.
agreed. in fact i don't really care about the csh script (its an old hack i
wrote before i learned of the wonders of perl), but i'm concerned about the
fact that this version of apache doesn't behave the same as the earlier version
running on the same box. thought it might be a sign of bigger problems to
come...
>
> > web2> unsetenv HOME
> > web2> test.cgi
> > No $home variable set.
> > Signal 7
>
> Your script is running your .cshrc or some crud like that. Hardly a
> friendly thing to be doing. If you're dead set on using csh then you
> should change the first line to:
>
> #!/bin/csh -f
i already tried this. no dice. my server is running as "nobody", and there are
no associated .cshrc or .login files. i tried changing the User and Group to an
existing non-privileged user, but that didn't make a difference either. i also
tried removing the system-wide /etc/csh.cshrc and /etc/csh.login files
anyway, for now i'm going to ditch the csh script and see how it goes...
thanks
jay
--
/////////////////////////////////////////////////////////////////
Gerald E. Mortensen (Jay) Manager, Internet Projects
(315)452-8503 Syracuse Research Corp.
jay@syrres.com http://midas.syrres.com/~jay/
/////////////////////////////////////////////////////////////////