pcp
[Top] [All Lists]

Re: [pcp] Accessing instance specific metrics

To: pcp@xxxxxxxxxxx
Subject: Re: [pcp] Accessing instance specific metrics
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Wed, 22 Apr 2015 16:26:12 +0300
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5536B319.1090805@xxxxxxxxxxxxxxxx>
Organization: Red Hat
References: <5534C680.2020709@xxxxxxxxxx> <5536317C.5000600@xxxxxxxxxx> <5536B319.1090805@xxxxxxxxxxxxxxxx>
Reply-to: myllynen@xxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
Hi,

On 2015-04-21 23:29, Ken McDonell wrote:
> On 21/04/15 21:16, Marko Myllynen wrote:
>> ... and
>> -i "11173 java" won't work.
> 
> But I would expect -i "'11173 java'" or -i '"11173 java"' to work.
> 
> The nested quoting is unusual (but documented in the pmval(1) man page)
> as a result of the "special" significance of white space in an external
> instance name, i.e. an instance name must be unique across an instance
> domain up to the first white space in the name.

thanks, I'm happy to confirm it works as you suggested. I think I missed
or misread the man page where it says that, there are indeed example a
bit below but the "or" in the description didn't hint that strongly
toward nested quoting.

"
The instance name may be quoted with single (â) or double (") quotes for
those cases where the instance name contains white space or commas.
"

Cheers,

-- 
Marko Myllynen

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