[rrd-users] Re: Argument List too long?

Kant, D (Dave) D.Kant at rl.ac.uk
Mon Dec 18 17:49:43 MET 2006


My script is basically one very long line.

#!/bin/sh
/usr/bin/rrdtool graph site_disk_HMW6dFGqY4.png -t 'Used Disk Storage'
-s -3m -w500 -h125 -l 0 DEF:A=A_multidisk.rrd:Used:MAX
DEF:B=B_multidisk.rrd:Used:MAX ...

I tried using "sed" to insert a line continuation character before each
DEF and CDEF. The script then looks like this:-

/usr/bin/rrdtool graph site_disk_HMW6dFGqY4.png -t 'Used Disk Storage'
-s -3m -w500 -h125 -l 0 \
DEF:A=A_multidisk.rrd:Used:MAX \
DEF:B=B_multidisk.rrd:Used:MAX \
...

However, I still get the error.

Dave

=========================================================
Dr Dave Kant
CCLRC eScience Department                      Phone: (+44)|(0) 1235
778178
Rutherford Appleton Laboratory                Fax:    (+44)|(0) 1235
446626
Chilton, Didcot, Oxon, OX11 0QX, UK         Email:  D.Kant at rl.ac.uk
==========================================================


-----Original Message-----
From: Andreas Maus [mailto:a.maus at science-computing.de]
Sent: 18 December 2006 16:03
To: Kant, D (Dave)
Cc: rrd-users at list.ee.ethz.ch
Subject: Re: [rrd-users] Argument List too long?


On Mon, Dec 18, 2006 at 03:52:38PM -0000, Kant, D (Dave) wrote:
Hi Dave.

> Hi there,
> 
> ./tier2.sh: line 3: /usr/bin/rrdtool: Argument list too long
> 
> We have an rrd script which attempts to graph over 600 data sources.
> Is there anyway to deal with the "Argument list too long" error?
> Is it RRD or the shell thats complaining?
The shell expands your wildcards and the list is too long.
Either you have to escape something or you can't use that
wildcard you are using. Depends on your script, of cause.

HTH,

Andreas.

P.S.: _PLEASE_ don't hijack other threads. Start a new thread instead.

-- 
Dipl.-Ing. Andreas Maus             science+computing ag
System Administration               Hagellocher Weg 73
mail: a.maus at science-computing.de   72070 Tuebingen, Germany
tel.: +49 7071 9457 456             www.science-computing.de

--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list