[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] [SEGFAULT] Re: [hobbit] graphs with external script
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] [SEGFAULT] Re: [hobbit] graphs with external script
- From: Henrik Storner <henrik (at) hswn.dk>
- Date: Wed, 21 Sep 2005 13:58:31 +0000 (UTC)
- Newsgroups: lists.hobbit
- Organization: Linux Users Inc.
- References: <1125998888.31317.24.camel@localhost.localdomain> <1122283729.2488.86.camel@localhost> <1124202194.9580.22.camel@localhost.localdomain> <1124286553.19964.50.camel@localhost.localdomain> <1124966301.32133.53.camel@localhost.localdomain> <68e737a1050826004074a9abea@mail.gmail.com> <1125063500.14375.20.camel@ghorg.leberjuquey.net> <1125069914.430f345abcd7c@www.qalpit.com> <430F3BFD.3010209@cvf.fr> <1125074130.430f44d24efc2@www.qalpit.com> <430F5655.3000401@cvf.fr> <1125308259.20043.15.camel@localhost.localdomain> <4318C0F2.4040101@cvf.fr> <1125998888.31317.24.camel@localhost.localdomain> <1126001260.31317.57.camel@localhost.localdomain>
- User-agent: nn/6.6.5+RFC1522
In <1126001260.31317.57.camel (at) localhost.localdomain> Etienne Roulland <Etienne.Roulland (at) cvf.fr> writes:
>QUERY_STRING="host=sms-sql02b.sms33.cvf&service=mysql&graph_width=576&graph_height=120&first=1&count=1&disp=sms%2dsql02b%2esms33%2ecvf&graph=hourly&action=view" ./hobbitgraph.sh
>Segmentation fault
When testing CGI scripts such as hobbitgraph.cgi, you must
provide all of the environment variables that the webserver
normally sets up for you.
Specifically, hobbitgraph expects the REQUEST_URI environment
variable to be set. So:
QUERY_STRING="host=...."
export QUERY_STRING
REQUEST_URI="http://localhost/cgi-bin/hobbitgraph.sh?${QUERY_STRING}"
export REQUEST_URI
./hobbitgraph.sh
Henrik