# Watchdog / Observe database and execute command if date = today

**URL:** <https://www.ruby-forum.com/t/watchdog-observe-database-and-execute-command-if-date-today/145268>\
**Category:** Rails\
**Created:** [August 7, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/watchdog-observe-database-and-execute-command-if-date-today/145268 "2008-08-07T12:06:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 7, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/watchdog-observe-database-and-execute-command-if-date-today/145268/1 "2008-08-07T12:06:54Z")

</div>

Hey there

I’m wondering if there is something like a watchdog in rails which  
keeps an eye on my database and executes specific commands when an  
entries date/time equals a certain point (like sending an email if the  
customer has birthday…) or do I’ve to write an external script for  
this?

Thanks  
Mowsen
