Re: Monitor specific, unrelated processes in top? (and more!…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Patrick C
Date:  
To: Main PLUG discussion list
Subject: Re: Monitor specific, unrelated processes in top? (and more!)
Thanks! I put it into a one-line script. I also made one that's specific to
the games I want to check. here's the generic one.

#!/bin/sh
top -p `pidof $* | sed -e's/ /,/g'`

On Thu, Jul 31, 2008 at 2:13 PM, Matt Graham <>wrote:

> After a long battle with technology, Patrick C 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.
>
> top -p `pidof wesnothd tremded somethingelse | sed -e 's/ /,/g' ` ?
> That'll
> work if the names of things you want to look at are relatively static. If
> not, you could wrap that in a bash function that used $1..$9 , and make it
> a
> lot more dynamic....
>
> --
> Sometimes when I talk to a Windows person about using a Mac,
> I feel like I'm explaining Van Halen to a horse. --Merlin Mann
> My blog: http://crow202.org/wordpress/
> Matt G|There is no Darkness in Eternity/But only Light too dim for us to
> see
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss