Operating System - HP-UX
1825768 Members
1834 Online
109687 Solutions
New Discussion

Error: /bin/ps: illegal option -- o on HP-UX 11.0

 
B.Sai Kiranmayi
Occasional Contributor

Error: /bin/ps: illegal option -- o on HP-UX 11.0

Sir,

What is the similar command option for ps -o on HP-UX 11.0.

I will be thankful to you if you can provide me a solution asap which i can try out.

Thanks and Regards,
Sai Kiranmayi

3 REPLIES 3

Re: Error: /bin/ps: illegal option -- o on HP-UX 11.0

Replace the code:

ps -o ... ...

with

UNIX95= ps -o ... ...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
RAC_1
Honored Contributor

Re: Error: /bin/ps: illegal option -- o on HP-UX 11.0

You may require a patch. ps -h. does it give -o option?? If not a ps patch may be required. Elase as stated,

UNIX95= ps -ef -o "args, pid"

Anil
There is no substitute to HARDWORK
B.Sai Kiranmayi
Occasional Contributor

Re: Error: /bin/ps: illegal option -- o on HP-UX 11.0

Thanks for ur response.

according to hp-ux man ps, ps -o wont work for default hp machine. It only works for XPG4 sys only. In order to work for standard hpux, we need to set on export UNIX95 flag.

our sys is already XPG4, ,then why doesnt it support ps -o option.

Why do we need to use UNIX95 command.

Kindly Plz respond me.

Thanks & Regards
Sai kiranmayi.