Little, Chris wrote:
Where am I going wrong on the sorting? I feel I should know this and
I'm missing something obvious. . . .
But no matter what I key the sort on, it is always in pid order.
[EMAIL PROTECTED]:~> ps -eo
user,pid,%cpu,%mem,vsz,rss,stat,start_time,cputime,comm
--sort=cputime|head
USER PID %CPU %MEM VSZ RSS STAT START TIME COMMAND
root 1 0.0 0.0 548 72 S Oct09 00:00:00 init
root 2 0.0 0.0 0 0 SW Oct09 00:00:00 migration_CPU0
root 3 0.0 0.0 0 0 SW Oct09 00:00:00 migration_CPU1
root 4 0.0 0.0 0 0 SW Oct09 00:00:00 kmcheck
root 5 0.0 0.0 0 0 SW Oct09 00:00:00 keventd
root 6 0.3 0.0 0 0 SWN Oct09 00:10:04 ksoftirqd_CPU0
root 7 0.4 0.0 0 0 SWN Oct09 00:10:22 ksoftirqd_CPU1
root 8 1.6 0.0 0 0 SW Oct09 00:42:10 kswapd
root 9 0.0 0.0 0 0 SW Oct09 00:00:00 bdflush
[EMAIL PROTECTED]:~>
The only consolation I have is that the example on the man page does
worse:
[EMAIL PROTECTED]:~> ps jax --sort=uid,-ppid,+pid
ERROR: Unknown sort specifier.
Got the same thing, but the man page says that the default is the same
as "+" and is optional. That worked when I left the + off of pid.
Kim
--
Kim Goldenberg
Systems Programmer I
State of NJ - OIT
609-777-3722
[EMAIL PROTECTED]
[EMAIL PROTECTED]
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390