1753257 Members
5429 Online
108792 Solutions
New Discussion юеВ

ps issue

 

ps issue

I want to find out how much percentage of CPU time are used by processes using ps ( is there any other posibility ? )
top utility show this information too.
It seems that i need to set UNIX95 environment variable to use to use the XPG4 behavior of ps.
I don't know to what value to set this environment
Any clues ?

3 REPLIES 3
Chris Wilshaw
Honored Contributor

Re: ps issue

Just type

UNIX95= ps -eopid,pcpu,args

This gives the PID, the %CPU and command line for all processes running.

Ken Hubnik_2
Honored Contributor

Re: ps issue

UNIX95= ps -e -o "vsz pcpu ruser pid stime time state args" | sort -rn |grep ps
T G Manikandan
Honored Contributor

Re: ps issue