From: sfield@microsoft.com (Scott Field)
Subject: RE: source code for 'ps' command ?
24 Oct 1996 09:35:40 -0700
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <c=US%a=_%p=msft%l=RED-66-MSG-961024132212Z-64780.cygnus.gnu-win32@INET-03-IMC.itg.microsoft.com>
Original-To: "'Enrico Brunetta'" <enrico@modulo.com>,
        "'Geoffrey Noer'"
	 <noer@cygnus.com>
Original-Cc: "'gnu-win32@cygnus.com'" <gnu-win32@cygnus.com>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.56
Encoding: 35 TEXT
Original-Sender: owner-gnu-win32@cygnus.com

There are a variety of existing tools that do this for WinNT, that
display all processes in the system.  Source for a couple are found in
the Win32SDK, like tlist.exe.  My personal favorite is pstat.exe found
in the win32sdk \mstools\bin

>-----Original Message-----
>From:	Enrico Brunetta [SMTP:enrico@modulo.com]
>Sent:	Wednesday, October 23, 1996 8:09 AM
>To:	Geoffrey Noer
>Cc:	gnu-win32@cygnus.com
>Subject:	Re: source code for 'ps' command ?
>
>
>Geoffrey Noer (noer@cygnus.com) wrote on Oct 22, 1996 15:17:
>>> I just downloaded the distribution and found a ps.exe (which works fine)
>>> 
>>> I was wondering why there is no source code for the command (I'm a NT
>>>newbie
>>> that would like to know how the ps program interfaces with the OS).
>>
>>src/winsup/utils/ps.cc
>
>Thanks for indicating the source code location, as it turns out my download
>was
>aborted and I was missing that directory tree.
>
>On the other hand, it seems to me that the 'ps' command is monitoring just
>subprocesses of bash. Is that true ? If so, is there any other command that
>will allow me to see every single process on my machine ? 
>
>Thanks,
>Enrico.
>-
>For help on using this list, send a message to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
