Skip to content

Instantly share code, notes, and snippets.

@geraldvillorente
Created December 17, 2014 01:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geraldvillorente/2dd435f6cd7ac98da7eb to your computer and use it in GitHub Desktop.
Save geraldvillorente/2dd435f6cd7ac98da7eb to your computer and use it in GitHub Desktop.
Getting the latest watchdog entry from watchdog table using watch command
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