> I've read through the archives, and even downloaded a number 
> of example .cgi scripts (14all, drraw, rrdgrapher, etc.) but 
> I still can't figure out how to get RRDs::Graph to return the 
> PNG graph straight to the browser without first writing the 
> graph to a file. =20
> Details:
> Perl 5.6.1 build 635
> RRDTool 1.0.40
> Windows XP-SP1
> Apache 1.3.26

We have a similar environment, except for using IIS instead of Apache.
The trick that did it for me was to switch to unbuffered output early
in the script, and to set the content type, like

#!perl -w
use RRDs;
$| = 1; print "Content-type:image/png\n\n";

RRDs::graph  [...]


This works for .pl-scripts, I did not find out yet how to make it work
out of .asp/perlscript - which would be a great plus, since invoking
perl
via .pl-cgi runs impressingly slow.

        Thies

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to