On Mon, Aug 29, 2005 at 11:33:52AM +0200, Alex van den Bogaerdt wrote:
Hi Alex.
> 
> You enter "\\n" and rrdtool gets to see "\n"
> You enter "\:" and rrdtool gets to see ":"
> 
> Notice the pattern?
> 
> >     "COMMENT:Average\\: ","GPRINT:cpu:AVERAGE:%3.2lf%%\\n",
>
> You enter "\\:" and rrdtool gets to see "\:".  RRDtool will
> not complain about that comment line.  It has seen an escape
> character and knows not to interpret that colon.
DOH!
You are right!

> 
> > Error:Garbage ': ' after command: COMMENT:Maximum:
> 
> Slightly confusing: the command is "COMMENT:Maximum" and that colon is
> not from your script line but from english text.  In other words, rrdtool
> accepted until "maximum" and complained about every token that followed,
> including its token separator ":".  You gave it a token separator of ":"
> and a token of " ".
Yes. That is the part that confuses me. It think it should care about the
the first colon in the COMMENT statement because it separates the statement
from text and don't care about colons after that first one. Or at least
this was the behavior in rrdtool 1.0.x

> > Well, I could live without colons ;) 
> 
> Not necessary.  Just escape colons like every other "special" char.
> Your operating system and/or your script parser may eat some escape
> characters (yours does) in which case you need to escape an escape char.
Yes. If I escape the collons with \ and escape the escape character it works.

Escaping all relevant colons (and escaping the escape character) is not to much 
work ...

Thanks a lot!

Andreas.

-- 
Dipl.-Ing. Andreas Maus             science+computing ag
System Administration               Hagellocher Weg 71-75
mail: [EMAIL PROTECTED]   72070 Tuebingen, Germany
tel.: +49 7071 9457 456             www.science-computing.de

-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to