| [reply] [d/l] |
Kanji,
Some of the other information suggested is probably useful to tye. In most cases, the specification of width doesn't work as pointed out below. In a few others, the keywords were invalid for FreeBSD's ps. The interesting thing is that 'args' is listed as a valid key word in TFM but still complained even though no width was specified.
| [reply] |
ps: euid: keyword not found
ps: egid: keyword not found
ps: ni:2: keyword not found
Great :^(. It seems that that ps doesn't support field width. The field for the PPID is surprinsingly ;^) called "ppid". After searching for the manpage on google, I'd try something like ps -j, ps -l and ps -a -x -o pid,ppid (this last one is just for testing if ppid works).
| [reply] [d/l] |
Well, "ppid" is one of the values to be specified for option "-o", "ps(1)". Try something like (tested on one of the Pair shared hosts running FreeBSD 4.8-STABLE) ...
ps -wwax -o ppid,pid,pgid,rss,vsz,nice,%mem,%cpu,rgid,ruser,user,stat,
+command \
| sort -k1,1n -k2,2n
... there are other options listed related to paging & swapping, and (real & saved) user & group id. If you specify the "-c" option along with "-o command", only command name will show up (w/o the arguments). | [reply] [d/l] |