Monitor specific, unrelated processes in top? (and more!)

Mike Schwartz schwartz at acm.org
Thu Jul 31 14:41:01 MST 2008


The man page for top has tons of info.

I am not sure if this is what you are looking for, "YMMV" but part of it
says:
(the quote below is taken from "http://unixhelp.ed.ac.uk/CGI/man-cgi?top"):

       -p : Monitor PIDs as:  -pN1 -pN2 ...  or  -pN1, N2 [,...]
	    Monitor only processes with specified process  IDs.   This	option
	    can  be given up to 20 times, or you can provide a comma delimited
	    list with up to 20 pids.  Co-mingling both approaches  is  permit-
	    ted.

	    This is a command-line option only.  And should you wish to return
	    to normal operation, it is not necessary to quit and  and  restart
	    top  --  just issue the '=' interactive command.

HTH,
-- 
Mike Schwartz
Glendale AZ
schwartz at acm.org

On Thu, Jul 31, 2008 at 1:31 PM, Patrick C <patrick.pxc.c at gmail.com> wrote:

> So back to the thread title, how can I monitor the various processes? I
> currently use ps and grep to look at them, but I'd really rather have some
> more information in a self-updating list, like top. Here's the ps/grep line
> that I use right now.
>
> pxc at cista:~$ ps -ef | egrep '(wesnoth|nexuiz|tremulous|pvpgn)' | egrep -vi
> '(screen|grep)'
> 109       5166  5165  0 12:43 pts/3    00:00:06 /usr/games/nexuiz-server
> trem-srv  5614  5613  0 13:13 pts/2    00:00:07
> /usr/lib/tremulous-server/tremded +set dedicated 2 +set fs_basepath +set
> fs_homepath /var/lib/tremulous-server +exec server.cfg +set net_ip localhost
> 110       5690  5689  0 13:23 pts/4    00:00:00 /usr/games/wesnothd -c
> /etc/wesnothd.conf
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20080731/a59db8e2/attachment.htm 


More information about the PLUG-discuss mailing list