[rrd-users] Re: RRD::GETENV

Chris Snell chris at bikeworld.com
Thu Mar 9 20:40:31 MET 2000


At 03:10 AM 3/9/00, Gilles Lamiral wrote:

>Could it be possible to have a <RRD::GETENV name> that dumps the environment
>variable "name". Possibility :<RRD::SETENV name>. SETENV with no value for 
>"name"
>giving its actual value.

If you are running RRDtool form the command line or a shell script, why not 
just put environment variables in your scripts like this (to borrow an 
example from the Tutorial)

    rrdtool graph ${GRAPHIC_NAME}                      \
       --start ${STIME} --end ${ETIME}                 \
       --vertical-label m/s                            \
       DEF:myspeed=test.rrd:speed:AVERAGE              \
       CDEF:realspeed=myspeed,1000,*                   \
       LINE2:realspeed#FF0000

Am I missing something?

Chris
--
Chris Snell <chris at bikeworld.com>               210.828.5558 W
Systems & Networks                              210.602.2308 M
Bike World of San Antonio                       210.832.8331 H
http://bikeworld.com | http://weathertools.com | http://gpstools.com

--
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



More information about the rrd-users mailing list