Skip to content

Instantly share code, notes, and snippets.

@riywo
Created February 22, 2011 11:14
Show Gist options
  • Save riywo/838525 to your computer and use it in GitHub Desktop.
Save riywo/838525 to your computer and use it in GitHub Desktop.
無限ループ使ってお手軽ロギング
while : ; do echo -n "`date` "; mysql -e 'show global status like "Queries";' | grep Queries; sleep 1; done | tee queries.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment