This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ps -W displays timestamps oddly


Christopher Faylor <cgf-no-personal-reply-please <at> cygwin.com> writes:
> The processes are not sorted in any way.  They are displayed in the
> same order as Windows presents them to cygwin.

Then let me try to do a better job pointing out the crux of the issue:

...
view_server.exe  18/10/2004 18:55:57 14:55:57 D:\rational\ClearCase\bin\view_ser
view_server.exe  18/10/2004 18:55:57 14:55:58 D:\rational\ClearCase\bin\view_ser
   explorer.exe  18/10/2004 18:55:58 14:55:58 C:\WINDOWS\Explorer.EXE
     shstat.exe  18/10/2004 18:56:04 14:56:05 C:\Program Files\Network Associate
        cmd.exe  19/10/2004 02:00:06 22:00:06 C:\WINDOWS\System32\cmd.exe
       sshd.exe  19/10/2004 12:54:58 08:54:59 D:\cygwin\usr\sbin\sshd.exe
       bash.exe  19/10/2004 12:54:59 08:55:00 D:\cygwin\bin\bash.exe
       bash.exe  19/10/2004 12:55:00 08:55:00 /usr/bin/bash
...

The left side is "process", the right side is "ps -W".

As process indicates explicitly, the first four lines are from Oct 18th, the
next four from Oct 19th.

>From the ps -W output, you cannot discern this fact.  From all appearances, the
first four lines with timestamps 14:*:* were from today (i.e., Oct 19th) in the
afternoon.  But they were not.  process is correct.  They were from yesterday.  

ps normally only shows timestamps for processes that began /today/.  For
processes that began before today, only the /date/ is shown (this is not
illustrated in the snippet I have included here, but you can look that my
previous message in this thread for a full example).

Bottom line:  by showing a /timestamp/ instead of a /date/, ps is suggesting
that these processes were started /today/ at the specified time.  This is
/wrong/.  These processes were actually started /yesterday/ and therefore should
be shown with a /date/ instead of a /timestamp/.






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]