[rrd-users] CDEF problem
Fernando Di Nucci
fernando.dinucci at gmail.com
Wed Jan 28 09:46:20 CET 2009
Rene Fritzsche ha scritto:
>> 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
Thank you Rene,
I'm using bash.
I tried escaping the brackets, as per another private message:
but now it complains:
ERROR: rpn expressions without DEF or CDEF variables are not supported
and I think this happens next line:
Any help appreciated
More information about the rrd-users