1833372 Members
3325 Online
110052 Solutions
New Discussion

ps -ef and TIME

 
SOLVED
Go to solution
Scott Van Kalken
Esteemed Contributor

ps -ef and TIME

Hey everyone,

I'd like to write a script or something to get the top numbers from the TIME column from a ps -ef

I can do this in perl or shell. The problem I have in both is grabbing the top time - I think my split statement is screwed.
3 REPLIES 3
Michael Tully
Honored Contributor
Solution

Re: ps -ef and TIME

Hi Scott,

This script might assist you, especially with the XPG4 usage. (Courtey of Bill H)

If not you may want to share your script....

Cheers
Michael
Anyone for a Mutiny ?
Scott Van Kalken
Esteemed Contributor

Re: ps -ef and TIME

you've come up with a winner.

It's unix95 that I needed!!!!

thanks michael (should have known you'd know.

Scott.
Michael Tully
Honored Contributor

Re: ps -ef and TIME

always knew how to say "BINGO!" My trouble is I can't spell it..... Glad to be of help.

Cheers
Michael
Anyone for a Mutiny ?