FWIW, here's a snipped taken directly from one of my scripts :
echo "
<RRD::GRAPH ${GraphPath}/${GrFile}-${Max}-${TimeScale}.png
--title=\"${Heading} - ${TimeScaleHead}\" -v \"bits/second\"
--end ${Etime} --start end-${Period}
followed by a load of other stuff, and finnally all piped through RRD Tool :
| /usr/bin/rrdcgi --filter - > /dev/null
IIRC there are other ways I could do it now, but the scripts were written some
time ago. I did it that way as building up a long arguments list was very slow,
and I ran into some limits as well when I got to thousands of arguments !
As you can see, all I did was to escape the quotes.
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users