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 <[EMAIL PROTECTED]> wrote: > On Tue, Apr 09, 2002 at 05:17:42PM -0400, [EMAIL PROTECTED] > 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/