[KLUG Members] Re: Apache Update

John Pesce members@kalamazoolinux.org
Wed, 4 Sep 2002 10:19:05 -0400 (EDT)


Sorry guys. In desperation copied the query to a file so I could pipe it
to stdin from the command line into the cgi.
It turns out the program I was calling from system() also produce output
to stdout, that which appears in the %response section before the %stdout
section in the cgi log.
When I run it from the command line like this, that line appears in the
stdout. I would think it would just go right into the stdout of the cgi
and appear on the html page. Apache apparent is treating it differently.
If I append >/dev/null to the system call, the cgi works.

what is up with that??


On Wed, 4 Sep 2002, John Pesce wrote:

> The output of the cgi logger is below. Everything in the %request
> and %stdout section looks correct. The %stdout section is a valid page and
> what I get if I don't include the system() call.
>
> The %response section seems to be what apache is complaining about, but
> that is not the response %stdout is.
>
> %response
> /home/httpd/html/capacity/MCO/cap_data
> %stdout
> Content-type: text/plain
>
> query=[airport=MCO&active0=on&visibility0=0&windSpeed0=0&windDirection0=0&broken0=-1&active1=on&visibility1=0&windSpeed1=0&windDirection1=0&broken1=-1&visibility2=0&windSpeed2=0&windDirection2=0&broken2=-1&visibility3=0&windSpeed3=0&windDirection3=0&broken3=-1&visibility4=0&windSpeed4=0&windDirection4=0&broken4=-1]
>
> Variables: