Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run the "ps -C cmdlist" command?

SOLVED
Go to solution
Mott Given
Frequent Advisor

How do I run the "ps -C cmdlist" command?

I am trying to run the command "ps -C commandlistargument" on HP-UX v11.00.
After I enter the following to identify commands begining with the string "Mpc":
$ ps -C Mpc

I get the following message:
$ ps: illegal option -- C
usage: ps [-edaflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup]

What do I need to do to get this command to run?

Mott Given
2 REPLIES
Highlighted
Tom Danzig
Honored Contributor

Re: How do I run the "ps -C cmdlist" command?

First do:

export UNIX95=

Then run the command.
Pete Randall
Outstanding Contributor
Solution

Re: How do I run the "ps -C cmdlist" command?

Mott,

That's an XPG4 extension. You need to invoke XPG4 behaviour by adding the UNIX95 prefix thusly:

UNIX95= ps -C Mpc

Don't neglect the space after the "=" sign!


Pete

Pete