[rrd-developers] rrdtool args too long for shell - solution

Tobias Oetiker tobi at oetiker.ch
Sun Aug 1 08:42:33 CEST 2010


Hi Richard,


Yesterday rik1083 wrote:

>
> Hi Guys
> Thanks for your wonderful tool, I use it all the time.
> I've been hitting a problem while combining several rrds into a single
> graph, for example:
> 300 rrds, 14 datasources in each.. and combining them all
> basically 100's if not 1000's of arguements
> The problem is that the shell was hitting a length limit!
> My solution - write args to text file (1 per line) and pass the filename as
> [...]

or you could use the '-' syntax in rrdtool:

write all your arguments into a textfile (all on the same line)
with chr(10) at the end of the line

and run

type file | rrdtool -

cheers
tobi

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list