View Single Post
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#968
Originally Posted by Saturn View Post
Hi,

Could you please tell me which packages exactly you have installed?

The ps you have is not compatible with iDont's busybox power or the default one. The usual gnu tools they don't replace the default binaries.
Maybe you've added them yourself to $PATH?

We would like to revert the changes done to fix your case because they break SMSCON for those people with the busybox power installed.

Cheers
Had a look at it. It comes from the package "procps". It is a 'standard' package in the debian world and can be found in the fremantle repo (http://maemo.org/packages/view/procps/)
It provides:
Code:
/bin/kill
/bin/ps
/etc/init.d/procps
/etc/sysctl.conf
/lib/libproc-3.2.7.so
/sbin/sysctl
/usr/bin/free
/usr/bin/pgrep
/usr/bin/pkill
/usr/bin/pmap
/usr/bin/pwdx
/usr/bin/skill
/usr/bin/slabtop
/usr/bin/snice
/usr/bin/tload
/usr/bin/top
/usr/bin/uptime
/usr/bin/vmstat
/usr/bin/w.procps
/usr/bin/watch
I think I installed it a long time ago because I needed vmstat, watch or some other tool. Didn't realize it also replaced ps.

But to be honest I got quite used to this ps. It offers me some parameters I regularly use (and it's compatible with my Linux desktop ps).

It's not always wise to rely on output of tools, because it can change on new releases I know from my own experience. But I also know it is hard to avoid a lot of times.

What is the dilemma you are facing? That there are two different outputs?
Couldn't that be solved by a construction like:
Code:
if /bin/ps = regular file then:
  # expect procps output
if /bin/ps = symlink to busybox then:
  # expect busybox output
Or are matters more complicated? I did not see the particular part of the code.

If it is too complicated, please remove the support for the procps ps tool. Then it is up to me to chose between smscon or procps ps. Now knowing why smscon behaved in that way is already a nice bonus
 

The Following User Says Thank You to ade For This Useful Post: