On Tue, 21 Nov 2000, Ken McDonell wrote:
> My initial reaction (given my old fart Unix status) is that I'd
> recommend using cpp to generate your pmlogger config files, rather than
> adding this functionality to pmlogger (this functionality certainly is
> not part of pmlogger at the moment).
I think Michal's suggestion is a good one - it would be handy for
those who have to deploy pmlogger all over the place.
In the simple case, simply cat all the configs you want together
and pipe them straight into pmlogger (it reads it's config on stdin
if -c is not given). But there are some cpp features that may be
useful, e.g. conditional constructs, macros, etc.
So you could use a simple script like this:
#! /bin/sh
. /etc/pcp.env
$PCP_CPP_PROG | pmlogger $*
and then run it just like pmlogger with the config on stdin. This is
so simple it probably doesn't warrant inclusion in the base pcp src,
but please pipe up if you'd like this feature ...!
thanks
-- Mark
|