<[EMAIL PROTECTED]>; "Rrd-Users-list"
Sent: Thursday, August 14, 2003 7:30 PM
Subject: [rrd-users] Re: Graphing to STDOUT
> > Having a few problems with RRDs::graph under win2k.
> > I am able to create graphs OK if I create a file, but I have
> > a need to se
>
> Did you set perl to unbuffered output and provide the proper mime-type?
>
> e.g. somewhere at the beginning:
>
> $| = 1; print "Content-type:image/png\n\n";
>
Yes on both counts.
The script works fine if I graph to a file. Changing ONLY the output
filename to a '-' causes the problem.
--
Uns
> Having a few problems with RRDs::graph under win2k.
> I am able to create graphs OK if I create a file, but I have
> a need to send them to STDOUT instaed. According to the
> RRDTool docs, using '-' as the filename will send the output
> to STDOUT. However, doing this in my perl script simpl
if you look in the man page for rrdgraph it will explain that you can
substitute the filename with a - if you want to display an image to stdout.
here is an example:
rrdtool graph - \
--start ${RRDDATE} \
--title "${TITLE}" \
--vertical-label load_time \
--imginfo