In article <1452266932862-7583246.p...@n2.nabble.com>, maxmax20 <mak.ad...@zoho.com> wrote: > Hello, > > I have a simple script that greps some values from a csv file. > I wanted to do the following: > > rrdtool update /home/pi/net/net.rrd N:'cut -d, /home/pi/net/devices.csv -f13 > | cut -d: -f2'::::: to get the first value out of the csv file, but it seems > that it won't work. > > Can this be done or do I need another workaround to extract the values and > to update the RRD DB? > > Thanks a lot for your help. > Mark
Put "echo" before rrdtool, to see exactly what command is being generated without actually trying to execute it. Then you can tinker with it till it looks right and then remove the echo to try it for real. But also, it might depend on your CSV file. If you post a few example lines we might be able to help. Also post the definition of your RRD file. Cheers Tony -- Tony Mountifield Work: t...@softins.co.uk - http://www.softins.co.uk Play: t...@mountifield.org - http://tony.mountifield.org _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users