Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Chuck" <nospam-chuck_harkness@compuserve.com>
Subject: need tech advise
Date: Tue, 06 Mar 2001 02:01:31 GMT	[thread overview]
Message-ID: <%xXo6.248283$8V6.41236346@typhoon.tampabay.rr.com> (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






             reply	other threads:[~2001-03-06  2:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-06  2:01 Chuck [this message]
2001-03-06  4:19 ` need tech advise Mark Garrett
read-only archive

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