On Mon, 16 Aug 1999, George Adams wrote:
> I was almost sure that any command-line options or alternate configuration file
>(i.e. `analog +g/tmp/myconfig.txt`) would override the global (non-mandatory)
>"analog.cfg". I based that on the fact that the global analog.cfg contains
> HOSTNAME "[my organisation]"
> but if I put
> HOSTNAME "David's Stuff"
> in /tmp/myconfig.txt, then run `analog +g/tmp/myconfig.txt`, the final output uses
>"David's Stuff" as its hostname.
>
> But today I was trying to get the UNCOMPRESS feature to work, by putting
> UNCOMPRESS *.gz "/usr/gnubin/gunzip -c"
> in /tmp/myconfig.txt, then running `analog +g/tmp/myconfig.txt` as usual.
> [...]
>
> and yet it was 'gzip -cd' that took precedence when I tried to analyze
> gzip'ed logfiles.
>
> Again, it was easy enough for me to change analog.cfg , but is this the
> way analog is *supposed* to behave?
>
Yes. The difference is that you can have only one HOSTNAME command, so it
overrides earlier ones. But you can have several UNCOMPRESS commands, so
they accumulate. docs/syntax.html puts it like this:
> Generally later commands override earlier ones if you can have only one of
> that thing (e.g., for the OUTFILE), or supplement them if you can have
> several (e.g., for the LOGFILE, because you can read several logfiles).
(I can see you were thinking that you could only have one "UNCOMPRESS *.gz".
But it's the fact that you can have several UNCOMPRESSes that is relevant.)
--
Stephen Turner [EMAIL PROTECTED] http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
"Due to the conflict in Kosovo, we will not be showing the movie Wag the
Dog. Instead, we will show Mortal Kombat: Annihilation." Cable & Wireless
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------