Skip to content

Instantly share code, notes, and snippets.

@hagope
Created June 6, 2012 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hagope/2884314 to your computer and use it in GitHub Desktop.
Save hagope/2884314 to your computer and use it in GitHub Desktop.
Shell command to monitor a MySQL process
while true; do mysql -uroot -e "show processlist" | grep 29357; sleep 10; done
@hasham2
Copy link

hasham2 commented Jun 7, 2012

You may consider using monit to monitor processes in production servers

@hagope
Copy link
Author

hagope commented Jun 8, 2012

Cool thanks for the tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment