James Carlson wrote:
> Antonello Cruz writes:
>> You can get the ctid from svcs -l <fmri> and the processes member from 
>> ctstat -vi <ctid> and then process the output of ctstat.
>> The downside of this approach is that I don't think either output, 'svcs 
>> -l' or 'ctstat -iv' are stable so you can rest assured your script will 
>> not break.
> 
> 'svcs -Ho CTID <fmri>' should be expected to produce stable output, so
> you ought to be able to do this to get the PIDs in a service:
Right, but that's not what's in svcs(1).
It says:
"Screen output is Uncommitted. The invocation is Committed."

Just to make my position clear. I am all in favor of doing the output of 
-o col[,col]... stable. I just saying the man page says it is uncommitted.

And I also believe ctstat should have a stable output for all its fields.

Antonello

Reply via email to