Originally Posted by jr8rdt
it does give me the cpu util for that pid however the number is different from TOP (irix on). the number from TOP is more accurate. since I have dual core cpu , how can I make the "ps" command works ?
The number from "top" is a different metric to that presented by "ps". Neither is necessarily more accurate than the other, given that /proc is the source of the data used by both.
Read the man pages, then decide what it really
is you are trying to measure.