Re: How do I run the "ps -C cmdlist" command? (297 Views)
Reply
Frequent Advisor
Mott Given
Posts: 124
Registered: ‎01-30-2000
Message 1 of 3 (297 Views)
Accepted Solution

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
Please use plain text.
Honored Contributor
Tom Danzig
Posts: 642
Registered: ‎12-20-1999
Message 2 of 3 (297 Views)

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

First do:

export UNIX95=

Then run the command.
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 3 of 3 (297 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation