summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc212c1)
raw | patch | inline | side by side (parent: fc212c1)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 Apr 2009 07:51:20 +0000 (07:51 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 14 Apr 2009 07:51:20 +0000 (07:51 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1790 a5681a0c-68f1-0310-ab6d-d61299d08faa
bindings/perl-piped/RRDp.pm | patch | blob | history |
index dc79358c7b71ed9c0f4bd0e77cae64145bb5ac62..14cccf46d5e4050c07ef643c6ff1016dbc101058 100644 (file)
pass commands on to RRDtool. check the RRDtool documentation for
more info on the RRDtool commands.
+B<Note>: Due to design limitations, B<RRDp::cmd> does not support the
+C<graph -> command - use C<graphv -> instead.
+
=item $answer = B<RRDp::read>
read RRDtool's response to your command. Note that the $answer variable will
}
$cmd =~ s/\n/ /gs;
$cmd =~ s/\s/ /gs;
+
+ # The generated graphs aren't necessarily terminated by a newline,
+ # causing RRDp::read() to wait for a line matching '^OK' forever.
+ if ($cmd =~ m/^\s*graph\s+-\s+/) {
+ croak "RRDp does not support the 'graph -' command - "
+ . "use 'graphv -' instead";
+ }
print RRDwriteHand "$cmd\n";
}