BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} bbgen 3.4 seg faults - bb 1.9e, bbgen3.4, solaris 9



In <EC5D587F10C6284699273ACCCD42B20024CC5D@m0319p35.nordstrom.net> "DeCamp, Jon" <Jon.DeCamp@nordstrom.com> writes:

>When I run this straight from cgi-bin/bb-findhost.sh (for this
> example) I get an "Internal Server Error", which is why I
> back-tracked to the cgi binary, and then tried to re-compile (with no
> success when testing the binary from the bbdisplay directory).

OK. The way to troubleshoot CGI problems is to run the tools the
same way as the web server does.

If you fire up your browser and try to use the bb-findhost CGI, you'll
see the URL being something like this:

http://www.hswn.dk/bb-cgi/bb-findhost.sh?host=voodoo&case_sensitive=on&SUB=Search

What happens is that the webserver defines a QUERY_STRING environment 
variable with the part of the URL following the '?'. So to mimic the
webserver behaviour, do

QUERY_STRING="host=voodoo&case_sensitive=on&SUB=Search"
export QUERY_STRING

You need the quotes because there are '&' signs in the string.

Then run /usr/local/apache/cgi-bin/bb-findhost.sh and see what is
says.


Henrik
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index