1834148 Members
2146 Online
110064 Solutions
New Discussion

XPG4

 
SOLVED
Go to solution
aruns_s
Frequent Advisor

XPG4

How do I set the XPG4 environment?? I need to run ps command with some XPG4 options, but do not know how?


Specifically, I want to find out the CPU utilisation of a process (via a script), so need to use something like "ps" or "top" to do it. the "man" page for ps seem to indicate that I can get pcpu, but only via XPG4
1 REPLY 1
Dennis Handly
Acclaimed Contributor
Solution

Re: XPG4

You do it by temporarily exporting UNIX95:
$ UNIX95= ps -opcpu