ps command fields

Denys Vlasenko vda.linux at googlemail.com
Tue Feb 1 23:59:22 UTC 2011


On Tuesday 01 February 2011 18:10, David Collier wrote:
> What's the story with fields on a ps command output?
> 
> I have a copy of 1.10 here which has the -o option allowing the user to
> choose the columns
> But I've got a copy of 1.13 which doesn't allow this, so I assume this is
> a busybox build choice?

You need to exable DESKTOP=y in .config
 
> In the 1.13 one there is the option of a "stat" field 

Can you send the .config with which you have working "ps -o stat"?

# ./busybox ps -o stat
ps: bad -o argument 'stat'
# ./busybox | head -1
BusyBox v1.13.0 (2008-11-10 22:24:12 CET) multi-call binary

> - which seems to  
> have disappeared on my 1.17 one - did I fail to ask for it, or has it
> been withdrawn ?
> 
> More to the point, if I don't have stat, can I be sure I won't see zombie
> and terminated processes in the output of ps?

Looks like -o stat is not implemented.

-- 
vda


More information about the busybox mailing list