1751905 Members
5535 Online
108783 Solutions
New Discussion юеВ

Re: ps Command

 
SOLVED
Go to solution
George Nikoloudis_1
Frequent Advisor

ps Command

Hello
I would like to ask how can I use the ps command with -o option
7 REPLIES 7
Joseph C. Denman
Honored Contributor

Re: ps Command

export UNIX95=true

Should do it.

...jcd...
If I had only read the instructions first??
Sridhar Bhaskarla
Honored Contributor

Re: ps Command

or

UNIX95= ps -e -o "pcpu args"

Check the blank space between = and ps

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: ps Command

hey,

U need to try the XPG4 synopsis for doing this. I mean with the 'UNIX95' command. See man ps !

Shiju
Life is a promise, fulfill it!
George Nikoloudis_1
Frequent Advisor

Re: ps Command

What is XPGA4?
Helen French
Honored Contributor

Re: ps Command

hey,

See this:

http://www.docs.hp.com/hpux/onlinedocs/B2355-90680/B2355-90680.html

or man ps

Shiju
Life is a promise, fulfill it!
Wodisch
Honored Contributor
Solution

Re: ps Command

Hello George,

XPG4 is the "X/Open Portablility Guide, release 4", which describes how to *do* UN*X in a portable way. And the environment variable "UNIX95" enables the extensions to "ps" - it just has to exist, any value or even none is ok.

HTH,
Wodisch
honda_1
New Member

Re: ps Command

Hi,

Even I was looking at using the -o option with ps. Using UNIX95= ps -o args,pcpu on HPUX 11 works fine. Can I assume that this will work with all further releases of HPUX and also is there another/better way of using ps -o.

Thanks