I use mysql replication to keep to servers up to date in a fake clustered environment. when some databases change, I need to run a shell script to update some server side information

Does anyone know how to or if it is possible to have mysql execute a script each time a table or database replicates?

Thanks!