pcp
[Top] [All Lists]

Re: New pmlognow utility

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: New pmlognow utility
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Tue, 18 Aug 2015 09:50:27 +1000
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <y0mk2stqy1r.fsf@xxxxxxxx>
References: <55CCF097.7070902@xxxxxxxxxxx> <y0megj5bozh.fsf@xxxxxxxx> <55D1E306.2040208@xxxxxxxxxxx> <20150817141948.GA30081@xxxxxxxxxx> <55D26ACB.50704@xxxxxxxxxxxxxxxx> <y0mk2stqy1r.fsf@xxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0
On 18/08/15 09:45, Frank Ch. Eigler wrote:
Ken McDonell <kenj@xxxxxxxxxxxxxxxx> writes:

[...]
%shell '[ -n "$PMLOGGER_ONCE" ] && echo %define PMLOGGER_ONCE; exit 0'
[...]

Clever.  The output of the subshell is parsed as a pmcpp directive?
(Any infinite looping prevention?)

Maybe and yes. %shell and/or %include nesting is limited to a depth of 5 (arbitrary compile time option).

And for the logged once case
        PMLOGGER_ONCE=yes pmlogger -c config ...

... plus an exit directive like "-T ..." ?

Yep, for the once case, probably -s 1 is what is required ... that's what I did in qa/1054 that I just created before I sent the mail, to be sure, to be sure ... 8^)>

<Prev in Thread] Current Thread [Next in Thread>