Skip to content

Instantly share code, notes, and snippets.

@chrisk
Created December 10, 2009 22:23
Show Gist options
  • Save chrisk/253751 to your computer and use it in GitHub Desktop.
Save chrisk/253751 to your computer and use it in GitHub Desktop.
Monitor the processes from a set of pid files in top
# 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