delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/26/05:52:30

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: Fri, 26 Jul 2002 10:37:32 +0100
From: Jim George <jim DOT george AT blueyonder DOT co DOT uk>
To: "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: a way to read the current cpu load from the shell or via a cmdline utility in cygwin?
Message-Id: <20020726103732.6f0d0edc.jim.george@blueyonder.co.uk>
In-Reply-To: <OIENKAGCMBEDKDHGANIKKEONCGAA.john.r.morrison@ntlworld.com>
References: <20020725220930 DOT 3ab7a24c DOT jim DOT george AT blueyonder DOT co DOT uk>
<OIENKAGCMBEDKDHGANIKKEONCGAA DOT john DOT r DOT morrison AT ntlworld DOT com>
Organization: JSDM Services Ltd
Mime-Version: 1.0

On Fri, 26 Jul 2002 10:23:11 +0100
"John Morrison" <john DOT r DOT morrison AT ntlworld DOT com> wrote:

> > On Behalf Of Jim George
> >
> > On Thu, 25 Jul 2002 11:57:51 -0400 (EDT)
> > Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote:
> >
> > > On Thu, 25 Jul 2002, Greg McCrory wrote:
> > >
> > > > At 7/24/2002 11:38 PM -0400, Igor Pechtchanski wrote:
> > > > >On Wed, 24 Jul 2002, Jim George wrote:
> > > > >
> > > > >Jim,
> > > > >
> > > > >I did a google search on "linux top cpu load".  Here's a top from the
> > > > >first match: http://www.groupsys.com/topsrc/top-3.5beta9.tar.gz
> > > > >It took about an hour to make it compile and run under
> > cygwin 1.3.12-2 on
> > > > >Win2k.  The patch is attached.
> > > > >
> > > > >Note: I just compiled and ran the code; I haven't verified
> > the correctness
> > > > >of the output.  It seemed to work without crashing, and the
> > output looked
> > > > >plausible.  I also haven't tested it on any system other
> > than mine (above).
> > > > >Try it at your own risk.
> > > > >     Igor
> > > >
> > > > Notes on my quick attempt this morning:
> > > >
> > > > To get the ./Configure to run properly I needed a symbolic
> > link to tcsh:
> > > > ln -s /bin/tcsh /bin/csh
> > >
> > > Right, I have that too (from way back, no wonder I forgot to
> > mention it).
> > >
> > > > Also chose module linux when asked.
> > >
> > > Yep.  Again, should have said that.
> > >
> > > > for owner, used SYSTEM instead of default root
> > >
> > > chown and chgrp didn't seem to work for me at all.  However, I
> > don't have
> > > a CYGWIN variable, so that might be the reason.  I don't miss
> > it, though.
> > >
> > > > install script did not move the executable into the proper directory:
> > >
> > > I used /usr/bin/install as the install command.
> > >
> > > > ./install -o SYSTEM -m 4711 -g SYSTEM top /usr/local/bin
> > > > chown: changing ownership of `/usr/local/bin/top': No such
> > file or directory
> > > > chgrp: changing group of `/usr/local/bin/top': No such file
> > or directory
> > > > chmod: changing permissions of `/usr/local/bin/top': No such
> > file or directory
> > > > make: *** [install-top] Error 1
> > >
> > > See http://cygwin.com/cygwin-ug-net/using-specialnames.html#AEN644
> > > It may be necessary to use the local script after all, and
> > re-write it to
> > > boot.
> > >
> > > > I was able to install it manually and it appears to work.
> > > > GMc
> > >
> > > Not quite correctly -- see
> > > http://cygwin.com/ml/cygwin/2002-07/msg01995.html
> > > 	Igor
> > Hi everyone,
> >
> > 	well I got as far as compiling and installing, in the same
> > way that Greg did, but...
> >
> > 	When I run top I get the following error..
> >
> > 		top: proc filesystem not mounted on /proc
> > 		     type = 6
> 
> /proc is virtual.  Make sure you have the latest version
> of cygwin (the dll).  If you wish, you can create a directory
> called /proc, but you don't have to.
> 
> J.
Thanks John, 

	but I'm running 1.3.12?

	Isn't that recent enough?

Jim

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