From owner-freebsd-questions@FreeBSD.ORG Sat Jan 13 01:08:30 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 495F816A40F for ; Sat, 13 Jan 2007 01:08:30 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id BE1B313C44B for ; Sat, 13 Jan 2007 01:08:29 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (dialup186.ach.sch.gr [81.186.70.186]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l0D17m5o022333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 13 Jan 2007 03:07:58 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l0D17e63002077; Sat, 13 Jan 2007 03:07:40 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l0D17cMn002073; Sat, 13 Jan 2007 03:07:38 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Sat, 13 Jan 2007 03:07:37 +0200 From: Giorgos Keramidas To: Peter aka SweetPete Message-ID: <20070113010737.GC1715@kobe.laptop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.157, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.24, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: binary called "top" not have realtime filter/search? [#SHAZBOTAA7235423352662A] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2007 01:08:30 -0000 On 2007-01-12 14:02, Peter aka SweetPete wrote: > I've red the manpage for "top" (from heh heh "top" to bottom...), > and I am amazed that there is not a feature to hit '/' or '?' in > order to search and display only processes which match a certain > keyword/search term. For example, a user running top could hit '/' > and enter "fire", which would display processes related to > "firefox." That's an excellent idea :) Should we also allow for limiting by other stuff too, i.e. like the 'l' command in the mail/mutt mailer accepts a 'limit pattern' with a syntax like: Limiting by PID ~p minpid-maxpid only show pids in [minpid...maxpid] ~p minpid only show pids greater than minpid Limiting by username or user ID ~u username only show processes of user `username' ~U uid only show processes of user uid ~U uidmin-uidmax only show processes of users minuid-maxuid Limiting by number of threads ~t minthr-maxthr only show processes with minthr-maxthr threads ~t minthr only show processes with more than minthr threads Limiting by priority ~P minpri-maxpri only show processes with minpri-maxpri priority ~P minpri [...] You get the idea... > What is the best way to get (such) a feature added to "top?!" I know > I know, I'm always causing mayhem. *grin* If you have a patch to submit, I'm sure we can find people who are interested in reviewing, testing and committing it.