[rrd-users] RRDs::Graph to STDOUT on Win32

Jim Lancaster jlancaster at mbdns.com
Thu Jul 3 23:18:13 MEST 2003

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable
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.
Perl 5.6.1 build 635
RRDTool 1.0.40
Windows XP-SP1
Apache 1.3.26
RRDs::Graph works when I specify an actual filename instead of '-'.  If
I specify '-', the script runs OK, but at the bottom of the HTML page I
get hex garbage.  I know this means that STDOUT is reading binary data
in text mode.  I've tried various combinations of turning autoflush
on/off, "binmode(STDOUT)", but I've gotten nowhere.  I've also tried
using the GD module, but I don't really know what I'm doing.
Any help would be greatly appreciated.  (No 'Windows sucks' comments
please.  I don't like it any more than you do, but circumstances dictate
that I have to use Windows on this project.)

-- Attached file removed by Ecartis and put at URL below --
-- Type: image/gif
-- Desc: TechTool.gif
-- Size: 2k (2074 bytes)
-- URL : http://www.ee.ethz.ch/~slist/p/08-TechTool.gif

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list