Created
December 10, 2009 22:23
-
-
Save chrisk/253751 to your computer and use it in GitHub Desktop.
Monitor the processes from a set of pid files in top
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Monitor the processes from a set of pid files in top | |
# This doesn't work on OS X, because its top doesn't have -p. | |
top -p $(cat /var/run/*.pid | tr '\n', ',' | sed s/,$//) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment