heh. The code is taken from a bit of java i'm writing. What it does is call rrdtool using a system call. What you see below is how to insert a variable into a string.
In the end it does look like: CDEF:cout=239324,UN,0,23532,IF \ Still can't get it to work using variables that are produced outside of rrd. -sasha -----Original Message----- From: Alex van den Bogaerdt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 7:03 PM To: [EMAIL PROTECTED] Cc: rrd-users@list.ee.ethz.ch Subject: Re: [rrd-users] graphing If I understand you, you'd like to insert the value from certain variables ? This of course depends on your shell however I've never encountered one that dereferences variables by quoting them and surrounding them with plus signs. You may have gotten confused by awk scripts where these kind of constructs can be seen. However, in that case they look like "CDEF:cout=" + currentOut + ",UN,0," + currentOut + ",IF" and then the quotes are *not* around your variables. My guess is that you should use CDEF:cout=$currentOut,UN,0,$currentOut,IF -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi