[rrd-users] CDEF problem
Fernando Di Nucci
fernando.dinucci at gmail.com
Wed Jan 28 09:46:20 CET 2009
Rene Fritzsche ha scritto:
> Hi,
>
> [...]
>> but when I execute the script I get:
>>
>> syntax error near unexpected token `('
>> ` CDEF:prec=PREV(pippo) \'
>>
>> and I can't understand why.
>
> some shells (like bash, csh.. to name a few) dont like the use of ( or ) in their
> scripts, as this represents some indirect variables...
> simple solution:
> put " around your definitions... like this:
>
> "CDEF:prec=PREV(pippo)" \
> "...."
>
> it works for me.. but i dont know which shell you are using to execute your
> rrd-command.
>
> HTH
>
> Rene.
Thank you Rene,
I'm using bash.
I tried escaping the brackets, as per another private message:
CDEF:prec=PREV\(pippo\) \
but now it complains:
ERROR: rpn expressions without DEF or CDEF variables are not supported
and I think this happens next line:
CDEF:time=TIME \
Any help appreciated
Fernando
More information about the rrd-users
mailing list