Hi unicsonline > > Now how to generate same graph, but with a pipe syntax, like 'cat file | > rrdtool - ' or 'rrdtool - < file' ? > > I have tried to just remove 'rrdtool' from the file listed upper, and then > perform a cat file | rrdtool - , and the result is: > > ERROR: Could not make sense out of '\' > ERROR: unknown function '--title' > ERROR: unknown function '--width' > ERROR: unknown function > 'DEF:v1_PhysicalCPU=lpar.rrd:PhysicalCPU:AVERAGE:step=300:end=start+24h:start=midnight' > ERROR: unknown function 'CDEF:r1_PhysicalCPU=v1_PhysicalCPU' > ERROR: unknown function 'VDEF:m1_PhysicalCPU=r1_PhysicalCPU,MINIMUM' > ERROR: unknown function 'VDEF:M1_PhysicalCPU=r1_PhysicalCPU,MAXIMUM' > ERROR: unknown function 'VDEF:A1_PhysicalCPU=r1_PhysicalCPU,AVERAGE' > ERROR: unknown function 'VDEF:l1_PhysicalCPU=r1_PhysicalCPU,LAST' > ERROR: unknown function 'CDEF:y1_PhysicalCPU=r1_PhysicalCPU,0,+' > ERROR: unknown function > 'LINE1:y1_PhysicalCPU#00FFFF:PhysicalCPU............................:' > ERROR: unknown function 'GPRINT:m1_PhysicalCPU:min\: %10.2lf' > ERROR: unknown function 'GPRINT:M1_PhysicalCPU: max\: %10.2lf' > ERROR: unknown function 'GPRINT:A1_PhysicalCPU: avg\: %10.2lf' > ERROR: unknown function 'GPRINT:l1_PhysicalCPU: last\: %10.2lf\l' > > If I remove the '\' at end of each lines and rerun, the result is: > > 0x0 > OK u:0.00 s:0.00 r:0.00 > ERROR: unknown function '--title' > ERROR: unknown function '--width' > RRDtool 1.2.13 Copyright 1997-2006 by Tobias Oetiker <t...@oetiker.ch> > Compiled Jun 13 2006 11:14:25
the backslash is a shell thing, which gets removed prior to the line being processed by rrdtool ... it is not supported in pipe mode ... each command should be on a single (potentially long) line. cheers tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900 _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users