Date: Sat, 13 Jan 2007 03:07:37 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: Peter aka SweetPete <swtpete@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: binary called "top" not have realtime filter/search? [#SHAZBOTAA7235423352662A] Message-ID: <20070113010737.GC1715@kobe.laptop> In-Reply-To: <ad32ec270701121402x78ba753ib5726a117c38f435@mail.gmail.com> References: <ad32ec270701121402x78ba753ib5726a117c38f435@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-01-12 14:02, Peter aka SweetPete <swtpete@gmail.com> 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 <maxpid only show pids less than 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 <maxthr only show processes with less than 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 <maxpri only show processes with less than 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070113010737.GC1715>