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

Serge Maandag serge.maandag at staff.zeelandnet.nl
Tue Nov 11 15:25:12 MET 2003


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



More information about the rrd-users mailing list