[ale] Fwd: ps -ax weird start time

Lightner, Jeff JLightner at water.com
Wed Oct 2 09:22:32 EDT 2013


Also –ax is invalid syntax.   The “a” and “x” (in this usage) are BSD style flags so you leave out the dash:

So ”ps ax” will show the cpu “TIME”
ps ax |egrep "TIME|cupsd"
  PID TTY      STAT   TIME COMMAND
2530 ?        Ss   190:11 cupsd

But as previously stated you can see both the “START” time (or date if more than 24 hours ago) and the cpu “TIME” with ps aux:
ps aux |egrep "cupsd|TIME"
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      2530  0.4  0.8  13732  6432 ?        Ss   Sep05 190:11 cupsd

Typically I use SysV style flags which do include the dash:
ps -ef |egrep "TIME|cupsd"
UID        PID  PPID  C STIME TTY          TIME CMD
root      2530     1  0 Sep05 ?        190:11 cupsd

Note:  The “–a” is valid in SysV but not with the “x” option which is for BSD .






From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Michael B. Trausch
Sent: Wednesday, October 02, 2013 7:16 AM
To: ale at ale.org
Subject: Re: [ale] Fwd: ps -ax weird start time

On 10/01/2013 09:47 PM, Erik Mathis wrote:
The date/time is correct on the box. TZ is UTC.
Has anyone seen this before?

Here is the snipit.

56:53 /usr/local/bin/php

Centos 2.6.32-358.14.1.el6.x86_64

The time shown in "ps -ax" is cumulative runtime, expressed in minutes:seconds.

With "ps axu", you get two time fields: time (date) started, and cumulative runtime.

     — Mike
--
[Naunet Corporation Logo]

Michael B. Trausch

President, Naunet Corporation
☎ (678) 287-0693 x130 or (855) NAUNET-1 x130
FAX: (678) 783-7843







Athena®, Created for the Cause™

Making a Difference in the Fight Against Breast Cancer





How and Why I Should Support Bottled Water!
Do not relinquish your right to choose bottled water as a healthy alternative to beverages that contain sugar, calories, etc. Your support of bottled water will make a difference! Your signatures count! Go to http://www.bottledwatermatters.org/luv-bottledwater-iframe/dswaters and sign a petition to support your right to always choose bottled water. Help fight federal and state issues, such as bottle deposits (or taxes) and organizations that want to ban the sale of bottled water. Support community curbside recycling programs. Support bottled water as a healthy way to maintain proper hydration. Our goal is 50,000 signatures. Share this petition with your friends and family today!



---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20131002/56df3554/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1701 bytes
Desc: image001.png
URL: <http://mail.ale.org/pipermail/ale/attachments/20131002/56df3554/attachment.png>


More information about the Ale mailing list