Oh easy...forgot to escape the colon!

COMMENT:" Last Build `date +\"%b %d %H\:%M\:%S %Y\"` "


=========================================================
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:  [EMAIL PROTECTED]
==========================================================


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kant, D (Dave)
Sent: 08 December 2006 14:45
To: [email protected]
Subject: [rrd-users] COMMENT


Hi,
 I'm trying to get the date as a Comment on my graphs but cannot get it to work.
 Any suggestions?
 Thanks, Dave


/usr/bin/rrdtool graph $dir/rrd/ExecutingSiteCount_day.png \
--title="Number of CEs" --start "-1day" --width 250 \
DEF:data=$dir/rrd/ExecutingSiteCount.rrd:LcgRecordCount:AVERAGE \
LINE3:data#FF0000:"Distinct Sites:" \
GPRINT:data:MAX:'= %5.0lf entries \n' \
COMMENT:"Last Build `date +\"%b %d %H:%M:%S %Y\"`\n"

However, I get an error

ERROR: Garbage ':42:29 2006\n' after command:
COMMENT:Last Build Dec 08 14:42:29 2006\n



=========================================================
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:  [EMAIL PROTECTED]
==========================================================

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to