X-Spam-Check-By: sourceware.org
Date: Wed, 8 Mar 2006 09:03:46 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Brett Serkez <techie@serkez.net>
cc: Emiel Janssen - Van Boxtel Software BV <ejanssen@van-boxtel-software.nl>,
   cygwin@cygwin.com
Subject: Re: windows processes in CygWin
In-Reply-To: <1141820317.4967.256117101@webmail.messagingengine.com>
Message-ID: <Pine.GSO.4.63.0603080902520.17730@access1.cims.nyu.edu>
References: <000d01c64299$e50b2460$c364a8c0@vbs.local>     <1141815269.25241.256112825@webmail.messagingengine.com>     <000701c642a1$1f9b09e0$c364a8c0@vbs.local> <1141820317.4967.256117101@webmail.messagingengine.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Wed, 8 Mar 2006, Brett Serkez wrote:

> Emiel,
>
> Please reply to the list and format so all can benefit/follow along.  I
> slightly rearranged so this makes sense on the list.
>
> > > The subject calls out services, the body talks about processes.
> > > Which is it?
> > >
> > > > I want to monitor all the processes that are running on Windows
> > > > 2003 and CygWin with a script (cobol).
> > >
> > i want to monitor the processes both in CygWin and Windoss on cpu
> > usage. we use cobol  to extract the processes running under CygWin.
> > i'am looking for a way to monitor the Windows processes in CygWin.
>
> Ok, so my understanding is you want to run a utility to output process
> information to a file and then write a COBOL program to read in this
> file and analize it, looking for CPU information.  Perhaps you want to
> pipe the information directly from the utility into the COBOL program.
> Either way you need a consistent format for analysis.
>
> Your use of the word monitor implies wrapping in a script so this
> processing reoccurs at regular intervals.
>
> >From the point-of-view of Windows, Cygwin processes are Windows
> processes so using a Windows/DOS utility will view all processes.
>
> Corinna's suggestion to use pslist from www.sysinternals.com is your
> utility to output process information.  You can run DOS programs from
> Cygwin, so you can redirect the output to a file or a pipe, then run
> your COBOL program to do what it wants.  All can be wrapped in a script
> using the language of your choice such as Perl, Bash, Sh,...

FYI, Cygwin's "ps" also supports a "-W" option that lists all Windows
processes.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/

