diff options
author | rsc <devnull@localhost> | 2004-03-25 23:03:22 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-25 23:03:22 +0000 |
commit | cb27443abf3d6af6ab52377c71c843e619928433 (patch) | |
tree | 437129c581c3a2fbee75c5e52388b2bcf1cedb5e /bin/ps | |
parent | 0023dde3260f4d6b085bed7d90bf8b1ca0daf77b (diff) | |
download | plan9port-cb27443abf3d6af6ab52377c71c843e619928433.tar.gz plan9port-cb27443abf3d6af6ab52377c71c843e619928433.tar.bz2 plan9port-cb27443abf3d6af6ab52377c71c843e619928433.zip |
Today's changes.
Diffstat (limited to 'bin/ps')
-rwxr-xr-x | bin/ps | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -15,6 +15,7 @@ BEGIN{ state["I"] = "Idle"; state["J"] = "Jail"; state["R"] = "Ready"; + state["O"] = "Running"; state["S"] = "Sleep"; state["T"] = "Stopped"; state["Z"] = "Zombie"; @@ -65,8 +66,16 @@ function statestr(s) } ! -/bin/ps -axww -o 'user,pid,start,time,vsz,stat,command' | sed 1d | - awk -f /tmp/awk.xxx$$ | sort -n +1 +case "${SYSNAME:-`uname`}" in +SunOS) + /bin/ps -aA -o 'user,pid,stime,time,vsz,s,args' | sed 1d | + nawk -f /tmp/awk.xxx$$ | sort -n +1 + ;; +*) + /bin/ps -axww -o 'user,pid,start,time,vsz,stat,command' | sed 1d | + awk -f /tmp/awk.xxx$$ | sort -n +1 + ;; +esac rm -f /tmp/awk.xxx$$ |