From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2614 invoked from network); 8 Apr 2001 12:50:20 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Apr 2001 12:50:20 -0000 Received: (qmail 17888 invoked by alias); 8 Apr 2001 12:50:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3811 Received: (qmail 17876 invoked from network); 8 Apr 2001 12:50:07 -0000 X-Authentication-Warning: DarkSun.local: luthien set sender to dominik.vogt@gmx.de using -f Date: Sun, 8 Apr 2001 14:49:46 +0200 From: Dominik Vogt To: zsh-users@sunsite.auc.dk Subject: Re: displaying top cpu using process Message-ID: <20010408144946.A640@gmx.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@sunsite.auc.dk References: <20010407163348.A619@gmx.de> <1010407182602.ZM15804@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <1010407182602.ZM15804@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Sat, Apr 07, 2001 at 06:26:01PM +0000 X-Sender: 510058704406-0001@t-dialin.net On Sat, Apr 07, 2001 at 06:26:01PM +0000, Bart Schaefer wrote: > On Apr 7, 4:33pm, Dominik Vogt wrote: > } Subject: displaying top cpu using process > } > } ps gives me complete control over the output format, but I can't > } make it give me the CPU percentage. Although the 'C' output > } modifier is documented as > } > } "use raw CPU time for %CPU instead of decaying average" > } > } I always get the decaying average. > > I can't even get my "ps" to accept the C modifier. It keeps interpreting > it as the "selection by command name" option, and telling me that only > root is allowed to do that. I remember that it was very difficult to make ps accept its options, but it is possible. The man page is really crap. I don't have the line handy right now, but I can look it up on monday. > } top -b -n 1 | sed '