OpenWrt Forum Archive

Topic: ps in busybox

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

After i checked out and built firmware last night. I noticed that ps command doesn't take A x options anymore, this also make some script buggy which use ps to check process.

Here is the log,

root@OpenWrt:/etc/init.d# ps x
BusyBox v1.4.2 (2007-10-03 08:56:27 HKT) multi-call binary

Usage: ps

Report process status

Options:
        w       Wide output


I think it just take w option, big_smile

I don't think Busybox ps took any other options...but there's a trick: if you compile it with w (wide ouput) support it will complain when invalid option is specified, but if you compile without wide support, it takes any option big_smile

Look here: https://dev.openwrt.org/changeset/9081. Ntpclient's hotplug script without the x parameter still works fine...

(Last edited by forum2006 on 3 Oct 2007, 17:54)

forum2006 wrote:

Look here: https://dev.openwrt.org/changeset/9081. Ntpclient's hotplug script without the x parameter still works fine...

Yeah, same as what I make the ntpclient init.d script works, but i forget to modify the hotplug script and see if it works or not. I'll give it a try and report later. Thanks!

The discussion might have continued from here.