[rrd-users] Re: Possible to store graph in variable?

Jeff Rodriguez jeff at unixisgod.com
Tue Nov 11 16:23:14 MET 2003


Change:
print "Content-type: image/png\n";

To:
print "Content-type: image/png\n\n";


Jeff
----- Original Message ----- 
From: "Serge Maandag" <serge.maandag at staff.zeelandnet.nl>
To: "Baenisch, Stephan" <Stephan.Baenisch at izb.de>;
<rrd-users at list.ee.ethz.ch>
Sent: Tuesday, November 11, 2003 07:25
Subject: [rrd-users] Re: Possible to store graph in variable?


> You can put <img src=http://domain.com/path/to/yourscript.pl> in your
> html.
>
> In yourscript.pl you can spit the image out to stdout by saying:
> $graph = `rrdtool graph - <options>`.
> print "Content-type: image/png\n";
> print $graph;
>
> Serge.
>
> -----Original Message-----
> From: Baenisch, Stephan [mailto:Stephan.Baenisch at izb.de]
> Sent: Tuesday, November 11, 2003 9:47 AM
> To: rrd-users at list.ee.ethz.ch
> Subject: [rrd-users] Possible to store graph in variable?
>
> Hi rrd-users,
>
> I wrote a perl-cgi script to generate graphs and html-pages on demand.
> The user can choose some parameters and the graphs
> will be created and stored to disk. From disk they are inserted into
> html.
>
> My question is now if it is possible to store a graph in a variable (or
> something else)
> and print it to html from there (I don't want to use rrd-cgi Module) ?
>
>
> --
> 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
>
>


--
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