Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ps -ef output headers

Status
Not open for further replies.

mmcds

MIS
Jul 5, 2007
28
US
Need help to understand what the headings of the output of a ps -ef command is. Below is an example of the output of my ps -ef command

websubcu 11667 11657 0 10:56 ? 00:00:00 /scripts/test.sh


I understand what the websubcu, 11667, 11657 and /scripts/test.sh headings/fields are, but I don't understand what the 0 10:56 ? and 00:00:00 mean. Also some of my processes have Nov01 instead of a time like the 10:56. Is there anyway to see the time instead of the date? I assume once the time is over 24 hours it will convert it to a date.
 
Hi there,

I'm not sure whether there's a difference between AIX ps -ef output and Linux ps -ef output ...

On AIX it's the following meaning:

The first should be the STIME (The starting time of the process. The LANG environment variables control the appearance of this field.).

The second should be TIME (The total runtime for the process. The time is displayed in the format of mm:ss or mmmm:ss if the runtime reaches 100 minutes.)

See also:


... for detailed information about the ps command, parameters, column meanings, etc.

Regards
Thomas
 
Rememeber man is your help!

The order of "ps -ef" is:

UID PID PPID C STIME TTY TIME CMD

UID - Which user is running the program
PID - Process ID of the program
PPID - Parent Process ID (which program started the program)
C - Processor utilization
STIME - Start time of the process
TTY - Controlling TTY (Terminal)
TIME - Cumulativ CPU time
CMD - Command
 
Thanks for the help. Now my question is that if I have a STIME of Nov06 for example, then is there any way to see what the start time of it was?
 
Check man ps. See if you have -F or -o flag for ps.

on AIX, you can get full elapsed time since start of process with

[tt]ps -e -o etime,pid,args[/tt]

It is not the same as the start time, but maybe it can help you?


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top