Command to find slave lag (on mysql slave):
$ mysql -u root --password=PASSWORD -e "show slave status\G" | grep Seconds_Behind_Master Seconds_Behind_Master: 0
Command to find slave lag (on mysql slave):
$ mysql -u root --password=PASSWORD -e "show slave status\G" | grep Seconds_Behind_Master Seconds_Behind_Master: 0