Created
December 17, 2014 01:05
-
-
Save geraldvillorente/2dd435f6cd7ac98da7eb to your computer and use it in GitHub Desktop.
Getting the latest watchdog entry from watchdog table using watch command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch -n 1 "mysql -u <user> -e 'SELECT message, referer, FROM_UNIXTIME('timestamp') FROM watchdog ORDER BY 'timestamp' DESC LIMIT 0,1' <database_name>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment