[rrd-users] Re: Shell Variable Substitution and Split Lines (problem)

Alex van den Bogaerdt alex at ergens.op.het.net
Mon Aug 18 09:22:40 MEST 2003


On Mon, Aug 18, 2003 at 02:36:19PM +0930, Iain Buchanan wrote:
> On Mon, 2003-08-18 at 11:18, phill.glasson at ap.effem.com wrote:

> > It breaks whenever it encounters a line of text that contains a space, 
> > even if I quote the string, it still breaks.
> > I've checked the output, and the only thing I can see that's different is 
> > the way the double quotes are handled.

> Am I right is guessing that you start the process like this:
> $ script "arg with spaces" arg2 arg3

then inside "script" :

rrdtool "$2" "$3" "$1"

and not

rrdtool $2 $3 $1

HTH
Alex

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list