Watch is a very useful command to run another command periodically.
This is useful for monitoring queries that are causing your server to block.
- n 1 – is the number of secconds between queries.

watch -n 1 mysqladmin --user=root --password=yourpassword processlist

Page 1 of 11