index 618707ed56759c347fea96766fbabe9ed4923ec9..c3fbf91f91de2ca03a9210c7d06c5453ee5e0044 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
sub end ();
sub read ();
-$VERSION=1.3005;
+$VERSION=1.3002;
sub start ($){
croak "rrdtool is already running"
}
$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";
}