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


_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to