1753314 Members
5180 Online
108792 Solutions
New Discussion юеВ

ps command

 
SOLVED
Go to solution
ciwoo
Occasional Contributor

ps command

I want to know one process's CPU percentage.
In aix system, use "ps u pid", the reslut is as below:

USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
lichen 2388210 10.0 0.0 2524 2552 - A 12:47:15 10:17 .pxgateway

and how can I get one process'CPU percentage with ps command in hp-ux? or can you give me a comamnd to get it?
2 REPLIES 2
Yogesh M Puranik
Valued Contributor
Solution

Re: ps command

Hi,

Here it is,

echo " %CPU PID RUSER COMMAND" ;UNIX95= ps -ef -o 'pcpu pid ruser args'|sort -nr|head -10


Rgds
Yogesh
(Your points are highly appritiated)
ciwoo
Occasional Contributor

Re: ps command

TKS