delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/09/23:00:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 09 Apr 2002 22:59:36 -0400
From: Alan Dobkin <Alan AT ADobkin DOT Net>
To: cygwin AT cygwin DOT com
cc: CRuprecht AT Exchange DOT WebMD DOT net
Subject: Re: ps command - revisited
Message-ID: <3126562899.1018393176@ADobkin-1.US.Nortel.Com>
In-Reply-To: <20020409232825.GC18953@redhat.com>
References: <20020409232825 DOT GC18953 AT redhat DOT com>
MIME-Version: 1.0

I don't know why Chris's process isn't showing up, but I can 
attest to the fact that all Windows processes, including those 
associated with services *do* appear in the ps -W output, with 
only two exceptions:  the System Idle Process (PID #0) and the 
CSRSS.EXE (Client/Server Run-Time Subsystem) process, which is 
the user-mode portion of the Win32 subsystem.  Maybe cgf knows 
why these are missing and/or can add them to a future release. 
This should probably be considered a bug, since they are always 
listed in other Win32 process listings.  (Another minor related 
bug is that the System process, which runs kernel-mode threads, 
shows up as "*** unknown ***" instead of "System" in ps -W.)

As others have mentioned, there are lots of good utilities to 
list processes on WinNT/2K.  My personal preference is TLIST, 
which comes with the Windows 2000 Support Tools (included on 
the Win2K Pro CD), since it has a -T option for "task tree" 
which shows parent/child processes in sort of a hierarchy.  
It can also display detailed service/process/thread/DLL info.  
There is also PULIST, which comes with the Resource Kit and 
displays usernames associated with each process.  It can also 
show processes on remote systems.  Finally, there is PsList, 
which is one of Mark Russinovich's excellent utilities in his 
free PsTools suite.  You can download this from his web site:

http://www.sysinternals.com/

On the other hand, if you are specially looking for NT/2K 
service-related information, as opposed to process-related 
information, I recommend Mark Russinovich's PsService (also 
part of the PsTools suite above), and the MS Resource Kit 
utilities SC (Service Controller), SCLIST, and NETSVC.

Enjoy!

Alan

--On Tuesday, April 09, 2002 7:28 PM -0400 Christopher Faylor
<cgf AT redhat DOT com> wrote:

> On Tue, Apr 09, 2002 at 05:17:42PM -0400, CRuprecht AT Exchange DOT WebMD DOT net
> wrote:
>> Hi all, specially Corinna,
>> 
>> Corinna, maybe you can help out here. The UNIX ps command reports all and
>> every process running on the machine, the Windows (cygwin) ps command
>> however, omits WinNT/Win2K services, which is something we would like to
>> have working. Would it be possible to extent the current version of the
>> ps command to include this or can this become a future project?
> 
> I'm not sure why you would expect Corinna to "help out here" as I was
> the one who added the '-W' functionality to 'ps'.
> 
> The answer to your question is "No".  It is very unlikely that anyone
> would be interested in adding this kind of functionality to 'ps'.
> 
> I suggest you look into other alternatives.  If it is possible to list
> services then surely there is a tool out there which already does that.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019