Hi All
I am trying to write a perl script which queries the RRD and displays the graph 
on the standard output... i.e. my webpage which called this perl file...
But no image is displayed.... only junk characters....

Something like below...

1sJh rŒ‘Æ#¡1A† ƒ„ANZíÅYoÞýCq$9h !`“V{q֛wÿÁPÉò‚ŒANc̔ÆH 4! ƒ”ÆÌ)‘ÆŒ 
Ƅ`L0&À` rÒ*±Ôi  Ƅ`LÁ¤4f#™SBc`Ó˜`L0F ƒ1&Œ1Áä¤Õ^œõæÝ0G’‚ˆ”!Œ!  
rÒj/Îzóî?Š#Y^ÿ10HiŒ™Æ#„Æ„¤ AJ[1] Á˜B0Ƙ`€FÊ C0ÈI«4ÆRc¤)™ÆLiÌ4Є` 
rJc¨4ÆÐi  Ƅ`L0&  rÒj/[EMAIL PROTECTED] 
My code is...

my(@args) = (        "--start","$start",
        "--end","$end",
        "--imgformat","GIF",
        "--height","150",
        "--width","540",
        "--color","BACK#FFE2C6",
        "--color","MGRID#000000",
        "--color","SHADEA#999999",
        "--color","SHADEB#000000",
        "--color","GRID#999999",
        "-t $cust  $host  $ifindex $ran",
        "-v $t1",
        @DEF1,
        @DRAW

        );

#print "Content-type: image/gif\r\n\r\n";

RRDs::graph( '-', @args);
my $ERR=RRDs::error;
print "$ERR" if $ERR;

I tried putting Content type to image but its still giving junk characters...

Any ideas...

Regards

Chitman 

 


---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

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

Reply via email to