"ps ax" invalid option

1,142 views
Skip to first unread message

Sag

unread,
Nov 9, 2012, 1:25:54 PM11/9/12
to domusli...@googlegroups.com
Hi Brad,

Domus.Link is running flawlessly on my Qnap, except I must start it in two steps. I explained it on a past thread.

Now, I hardly ported it to a synology 4.1 firm.

PHP open base_dir modded and safe_mode_exec_dir disabled.  It's OK.

But let me explain another issue. /domuslink/lib/func/cmd.func.php calls cmd "ps ax".

On QNAP 3.7.3 firm:
Usage: ps
Report process status
        This version of ps accepts no options.
But no errors output when executed "ps ax". QWorking! ;-)

On Synology 4.1 firm:

Qnojemm> ps --help
BusyBox v1.16.1 (2012-09-26 03:29:04 CST) multi-call binary.
Usage: ps
Report process status
Options:
        w       Wide output
and error oupt when executing "ps ax": "ps: invalid option -- a"

So, my workaround was to replace "ps ax" with "ps"

Maybe you should know for the new version.

Kind regards



Brad

unread,
Nov 9, 2012, 2:43:41 PM11/9/12
to domusli...@googlegroups.com
Looks as they took the BSD extensions out. Could you try ps -ef to see if that works? If ps is just used on a linux system, it may not return all the processes. The "ax" says to return all. ps -ef is the same thing in a different shell form.

Brad

Brad

unread,
Nov 9, 2012, 2:45:05 PM11/9/12
to domusli...@googlegroups.com
Sorry, could you please run ps -ef on your synology platform and let me know what it returns.

Thanks


Brad

On Friday, November 9, 2012 12:25:55 PM UTC-6, Sag wrote:

Brad

unread,
Nov 9, 2012, 2:52:06 PM11/9/12
to domusli...@googlegroups.com
Well, it seems busybox may not have options that are there or documented. Would need to check os versions to use other command lines for ps.


Brad

On Friday, November 9, 2012 12:25:55 PM UTC-6, Sag wrote:

jemar...@gmail.com

unread,
Nov 9, 2012, 3:28:28 PM11/9/12
to domusli...@googlegroups.com
But you can see inside my post the busyBox allowed options for both cases: no options for QNAP, -w option for Synology.

Maybe a "ps | grep" solution?

Enviado desde mi BlackBerry® de Vodafone

From: Brad <crus...@yahoo.com>
Date: Fri, 9 Nov 2012 11:52:06 -0800 (PST)
Subject: [domuslink-users] Re: "ps ax" invalid option
--
You received this message because you are subscribed to the Google Groups "domuslink-users" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/domuslink-users/-/ZXbta59rnV0J.
To post to this group, send an email to domusli...@googlegroups.com.
To unsubscribe from this group, send email to domuslink-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/domuslink-users?hl=en-GB.

Brad

unread,
Nov 9, 2012, 4:19:37 PM11/9/12
to domusli...@googlegroups.com, jemar...@gmail.com
I think we may need to add a config option for the command to use in the settings. Default it to ps ax and then it can be changed for other systems.

Could you enter an issue into the google code issue list please.

Brad

Sag

unread,
Nov 9, 2012, 4:20:07 PM11/9/12
to domusli...@googlegroups.com
ps -ef output error -e invalid option
Reply all
Reply to author
Forward
0 new messages