# Performing Time based action

**URL:** <https://www.ruby-forum.com/t/performing-time-based-action/90680>\
**Category:** Rails\
**Created:** [March 30, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/performing-time-based-action/90680 "2007-03-30T23:05:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/13edae/32.png) [@kiran](https://www.ruby-forum.com/u/kiran)\
**Post date:** [March 30, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/performing-time-based-action/90680/1 "2007-03-30T23:05:10Z")

</div>

I need to do a particular action at a specified time on the web  
server(some thing like windows process which runs continuously on the  
server and do the specified action.)

Any one please suggest if this can be implemented using ruby on rails.

---

<div class="post-metadata">

**Author:** ![kiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/13edae/32.png) [@kiran](https://www.ruby-forum.com/u/kiran)\
**Post date:** [March 31, 2007, 7:51am UTC](https://www.ruby-forum.com/t/performing-time-based-action/90680/2 "2007-03-31T07:51:37Z")

</div>

Kiran wrote:

> I need to do a particular action at a specified time on the web  
> server(some thing like windows process which runs continuously on the  
> server and do the specified action.)
> 
> Any one please suggest if this can be implemented using ruby on rails.

I usually create a ruby file in the script directory that can be called  
hourly, daily, or weekly via a cron job.

---

<div class="post-metadata">

**Author:** ![kiran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/13edae/32.png) [@kiran](https://www.ruby-forum.com/u/kiran)\
**Post date:** [April 1, 2007, 4:37am UTC](https://www.ruby-forum.com/t/performing-time-based-action/90680/3 "2007-04-01T04:37:20Z")

</div>

Alex W. wrote:

> Kiran wrote:
> 
> > I need to do a particular action at a specified time on the web  
> > server(some thing like windows process which runs continuously on the  
> > server and do the specified action.)
> > 
> > Any one please suggest if this can be implemented using ruby on rails.
> 
> I usually create a ruby file in the script directory that can be called  
> hourly, daily, or weekly via a cron job.

Or you can use the scheduled trigger in backgroundrb if you want to  
create new task at specified time on the web or if that task need to  
access the application’s model.
