<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 30, 2013 at 9:20 AM, Alan McKay <span dir="ltr"><<a href="mailto:alan.mckay@gmail.com" target="_blank">alan.mckay@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":11o">No new lines without \ ... I'm stumped why it is not working. Though<br>
it is clearly something to do with my script but I'm certain I'm<br>
escaping things properly.</div></blockquote></div><br>Well it is definitely something to do with the way BASH is handling strings, so it is not an rrd issue.</div><div class="gmail_extra"><br></div><div class="gmail_extra">
But I am escaping things properly because I do this at the bottom of my script :</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><span class="" style="white-space:pre">        </span>echo "rrdtool graph --title \"$MYTITLE\" ${MYARGS}"</div>
<div class="gmail_extra"><span class="" style="white-space:pre">        </span>rrdtool graph --title "$MYTITLE" ${MYARGS} </div><div><br></div><div style>And the actual call to rrdtool (2nd line) fails and barfs.</div>
<div style>But if I take the output of the first command verbatim and copy and paste it into an interactive BASH shell, it works fine.</div><div style><br></div><div style>I've hit this before quite some time ago and I think there is a BASH variable I have to set in my script which alters the way it handles strings, or something like that.</div>
<div style><br></div><div><br></div><br clear="all"><div><br></div>-- <br>“Don't eat anything you've ever seen advertised on TV”<br> - Michael Pollan, author of "In Defense of Food"
</div></div>