Monitor specific, unrelated processes in top? (and more!)
Patrick C
patrick.pxc.c at gmail.com
Thu Jul 31 15:17:15 MST 2008
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 <danceswithcrows at usa.net>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 - 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/cdaa813d/attachment.htm
More information about the PLUG-discuss
mailing list