Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* need tech advise
@ 2001-03-06  2:01 Chuck
  2001-03-06  4:19 ` Mark Garrett
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck @ 2001-03-06  2:01 UTC (permalink / raw)


Need help in how to interpret the cputime field output of ps
command:

Example ouptut of ps -e -o pid,cputime,cmd  command
123456 12345678901  <- My addition for column widths.
       PID                 TIME CMD
  49260             1:23.97 oraclerenprod (LOCAL=NO)
  49408           01:59:45 oraclerenprod
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
  50092             1:40.00 oraclerenprod
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
  50093             0:00.19 oraclerenprod
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
  50102           01:17:49 oraclerenprod
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
  50795           52:31.35 oraclerenprod
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
  52227             0:00.10 ksh

Am I correct in assuming that?
1:23.97 = 1 minute, 23.97 seconds
01:59:45 = 1 hour, 59 minutes 45 seconds.

The field is a quite wide width:
What are the various output formats I could expect.

I'm looking to do addition of cputime outputs for related
processes in a ksh script.  But can't find documentation of
the format of this output field.

TIA
Chuck Harkness






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-03-06  4:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-06  2:01 need tech advise Chuck
2001-03-06  4:19 ` Mark Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox