[mrtg] Re: Feature Suggestion

Jakob Ilves jakob.ilves at oracle.com
Mon Mar 5 09:25:33 MET 2001


Hello!

My $.02 here...

I think the best way is to implement an option like "--options-file=filename" which makes cfgmaker
sort of replace the string "--options-file=filename" with the contents of the file "filename" thus
expanding the number of command line arguments.

As pointed out below, this saves some repeated typing as I also have a large number of config files
which have a large number of arguments to cfgmaker in common.

Another upside of this "--options-file" is that you can use it to work around the arbitrary limit
some operating systems put on the command line sizes.

If nobody else does, I'm willing to try implementing this feature in cfgmaker well enough for it to
be included in the MRTG distribution.  It's been in my pipeline of "needed cfgmaker features" for a
while.  Of course, I cannot make any commitments of when I've created this piece of code...   Perhaps
a month or two.

Best regards

/IlvJa


nellson at or.blm.gov wrote:

> That would work for the CFG file options, certainly. Would that work for
> the flags? Though I guess the flags themselves are not all that lengthy..
>
> It's a good suggestion, thank you!
>
> Nick
>
>
>                     "Daniel J
>                     McDonald"                To:     <nellson at or.blm.gov>, <mrtg at list.ee.ethz.ch>
>                     <dmcdonald at digico        cc:
>                     ntech.com>               Subject:     RE: [mrtg] Feature Suggestion
>
>                     03/02/01 10:53 AM
>
>
>
> > From: nellson at or.blm.gov
> > Sent: Friday, March 02, 2001 12:37 PM
> > To: mrtg at list.ee.ethz.ch
> > Subject: [mrtg] Feature Suggestion
> >
> [...]
> > It would be a great feature if cfgmaker and indexmaker
> > had an option to read in globals from a single file. that way I could put
> > all this just once into a single "profile" file if you will, and keep the
> > actual command line smaller. I think at some point ther is an actual
> limit
> > to what will work on a single command line anyway, isn't there?
>
> How about putting them in a file, and then using the include: command on
> that file?
>
> So, you would have base-globals.cfg with all of your default settings,
> then:
>
> cfgmaker ... --global 'include: base-globals.cfg' ...
>
> --
> 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

--
                (Jakob Ilves) <jakob.ilves at oracle.com>
             {Oracle Global IT, Network Management Group}
[Office as well as mobile phone: +46/8/477 3666 | Fax: +46/8/477 3572]
         - Intranet Home Page: http://jilves.se.oracle.com -



-- Attached file removed by Listar and put at URL below --
-- Type: text/x-vcard
-- Desc: Card for Jakob Ilves
-- Size: 444 bytes
-- URL : http://www.ee.ethz.ch/~slist/pantomime/27-jakob.ilves.vcf


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