21 Sep
2005
21 Sep
'05
1:58 p.m.
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