Operating System - HP-UX
1753309 Members
6415 Online
108792 Solutions
New Discussion юеВ

Re: Query about ps command option

 
SOLVED
Go to solution
shameemsoft
Frequent Advisor

Query about ps command option

Hi,

I need to execute below command in hpunix 11.31 as per SAP suggestion.

ps -ef -o comm=command,args=argument,ruser,user

But it is not working in hpunix 11.31. How can I use this?

Regards
Shameem
2 REPLIES 2
Matti_Kurkela
Honored Contributor
Solution

Re: Query about ps command option

The -o option for ps is standardized with UNIX 95 and later Unix standards. Unfortunately, those standards conflict with legacy practices so they cannot be enabled automatically.

You must set a special environment variable UNIX95 to enable the UNIX95 standard behavior in ps. The value of the variable is not important: the variable only needs to exist when the command is run.

Please run the command this way: (all on one command line)

UNIX95=1 ps -ef -o comm=command,args=argument,ruser,user

MK
MK
P Arumugavel
Respected Contributor

Re: Query about ps command option

Yes...

Yes the above will work.
Read the below for the explanation.

http://h30499.www3.hp.com/t5/System-Administration/What-is-UNIX95-in-these-commands/m-p/4968255#M417208


Rgds...