I did this with a perl CGI, not Tcl, but it works and is so simple the syntax by language shouldn't be an issue. just print "Content-Type: image/gif" and then make your graph call to dump the graph to stdout. You can always create a dummy gif and cat it to stdout as a test before adding the rrd graphing functionality to see that it works.
hope this helps - Kathy --------------------------------------------------- Kathy Kessey [EMAIL PROTECTED] [EMAIL PROTECTED] 650.556.5087 On Tue, 11 Dec 2001, Maarten van Gelder wrote: > > Hello rrd user, > > I 'd like to create a CGI in Tcl that returns a graph to a web-browser, > without first writing it to disk. RRD comes with a Tcl interface to > rrdtool. I managed to create a simple CGI script with the Rrd package that > can return a graph to a web browser by having the script create a graph on > disk and using an <img src> tag that references this file. I know one can > make Rrd::graph write the image to stdout, by using '-' instead of a > filename. Can anyone tell me if this feature can be used to return an > image to a web browser? If so, what would be the Tcl syntax for doing so? > > Thank you > > Maarten van Gelder > [EMAIL PROTECTED] > > > -- > 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 > > -- 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
