[mrtg] SetEnv[...] useage

Tim Sheets TSheets at Illinois.net
Mon May 14 22:02:26 MEST 2001


Hello everyone.

According to the docs, you can use the SetEnv[...]: line to set variables
that can be used when calling external programs.

What I would like to know, is if/how you can reference those within the .cfg
file as well as pass them to an external file.

if I have a line such as SetEnv[some_stuff]: blah...blah...
myVariable="testVar"

is there a way to specify a line like: 
Colours[testVar]: RED#FF0000,ORANGE#FFFF00,BLUE#0000FF,GREEN#00FFFF

and have the [testVar] translated to what I set on the SetEnv line?

I tried simple adding just that, preceeding with % and enclosing in
%testVar%.

Any thoughts??

Thanks for any help

Tim Sheets
tsheets at illinois.net

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list