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.

[php]
watch -n 1 mysqladmin –user=root –password=yourpassword processlist[/php]