Re: [rrd-users] RRDTOOL Update with script in string

2016-01-16 Thread Simon Hobson
Tony Mountifield wrote: >> # Get the file >> Utmp=$( < /home/pi/net/devices.csv ) >> >> # Get everything after the 12th ',' >> Utmp=$(Utmp#*,*,*,*,*,*,*,*,*,*,*,*,) > > Always dangerous to type suggestions on the fly without testing! > (been there, done that) > > I think you mean ${ ... } not

Re: [rrd-users] RRDTOOL Update with script in string

2016-01-15 Thread Tony Mountifield
In article <1931f5f1-efe3-44b2-a764-272fe0543...@thehobsons.co.uk>, Simon Hobson wrote: > maxmax20 wrote: > > > 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. >

Re: [rrd-users] RRDTOOL Update with script in string

2016-01-15 Thread Simon Hobson
maxmax20 wrote: > 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. As suggested, put echo in front of it - and possibly pipe the output through hexdump. One thought,

Re: [rrd-users] RRDTOOL Update with script in string

2016-01-14 Thread Tony Mountifield
In article <1452266932862-7583246.p...@n2.nabble.com>, maxmax20 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 fir

[rrd-users] RRDTOOL Update with script in string

2016-01-14 Thread maxmax20
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