Skip to content
Advertisement

ps command -o option gives “ERROR: Garbage option”

I have 2 suse-11 machine both has same kernel version.

Linux version 2.6.32.59-0.7-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2012-07-13 15:50:56 +0200

but in one machine below command works

ps -u test-o ‘%U %p %P %c’

but in other gives error like below

JavaScript

Really not able to figure what is the problem here, can any one suggest me what could be wrong?

EDIT: which ps in both gives /bin/ps

Advertisement

Answer

I checked md5sum of both ps command, it was different. So i suspect some one might have replaced this bin without notice. Copied the ps command from correct source and problem solved

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement