# How to install RailsCron?

**URL:** <https://www.ruby-forum.com/t/how-to-install-railscron/102393>\
**Category:** Rails\
**Created:** [February 8, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/how-to-install-railscron/102393 "2006-02-08T15:47:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/f17d59/32.png) [@yash](https://www.ruby-forum.com/u/yash)\
**Post date:** [February 8, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/how-to-install-railscron/102393/1 "2006-02-08T15:47:20Z")

</div>

Hi,  
I would like to start running a background procedure once a user logs in  
to his account on the website. For this I am considering using the  
RailsCron object. However, I am not able to download it. I am new to  
Rails. Can someone give me the excat command I should use to get  
RailsCron?

Can someone suggest a better way of running a procedure in the  
background?

Thanks  
-Yash

---

<div class="post-metadata">

**Author:** ![yash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/f17d59/32.png) [@yash](https://www.ruby-forum.com/u/yash)\
**Post date:** [February 8, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/how-to-install-railscron/102393/2 "2006-02-08T16:49:34Z")

</div>

On 2/8/06, Yash [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> I would like to start running a background procedure once a user logs in  
> to his account on the website. For this I am considering using the  
> RailsCron object. However, I am not able to download it. I am new to  
> Rails. Can someone give me the excat command I should use to get  
> RailsCron?

If you’re on unix and have Subversion installed,

cd $MY\_RAILS\_PROJECT  
./script/plugin install [http://svn.kylemaxwell.com/rails\_cron/trunk](http://svn.kylemaxwell.com/rails_cron/trunk)

Some people have been havnig problem with “script/plugin install” [1]  
so if it doesnt work for yuo, use the svn client directly;

cd $MY\_RAILS\_PROJECT  
svn co [http://svn.kylemaxwell.com/rails\_cron/trunk](http://svn.kylemaxwell.com/rails_cron/trunk) rails\_cron

If you’re on windows, not sure how SVN is best worked with there.  
There are GUI clients. Download one, and grab the rails\_cron plugin  
from the URL shown above.

Once you’ve got the plugin, read the README file.

> Can someone suggest a better way of running a procedure in the  
> background?

RailsCron is by far the easiest way that I know of to get started with  
running regularly recurring background tasks.

cheers  
Gerret

[1] [http://www.ruby-forum.com/topic/53761#31279](http://www.ruby-forum.com/topic/53761#31279)

---

<div class="post-metadata">

**Author:** ![yash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/f17d59/32.png) [@yash](https://www.ruby-forum.com/u/yash)\
**Post date:** [February 8, 2006, 4:49pm UTC](https://www.ruby-forum.com/t/how-to-install-railscron/102393/3 "2006-02-08T16:49:36Z")

</div>

On 2/8/06, Yash [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> I would like to start running a background procedure once a user logs in  
> to his account on the website. For this I am considering using the  
> RailsCron object. However, I am not able to download it. I am new to  
> Rails. Can someone give me the excat command I should use to get  
> RailsCron?
> 
> Can someone suggest a better way of running a procedure in the  
> background?

The following assumes that you’re running on Windows. If you’re using  
something else, let me know and I’ll revise the instructions.

Before you start, you will need Subversion installed. Even if you  
don’t use it to manage your projects, the Rails plugin installer uses  
it.  
Get the Windows installer here, if you don’t already have it.  
[http://subversion.tigris.org/files/documents/15/29065/svn-1.3.0-setup.exe](http://subversion.tigris.org/files/documents/15/29065/svn-1.3.0-setup.exe)

1. Open a command session by running ‘cmd’ (via Start → Run)
2. Change to the root of the project that you’d like to install  
RailsCron into.  
(I will assume this is c:\rails\your\_app)
3. Once your prompt looks like: C:\rails\your\_app\>  
Type:  
ruby script\plugin install [http://svn.kylemaxwell.com/rails\_cron/trunk/](http://svn.kylemaxwell.com/rails_cron/trunk/)

You should see something like this:  
A C:\rails\your\_app\vendor\plugins\rails\_cron\LICENSE  
A C:\rails\your\_app\vendor\plugins\rails\_cron\init.rb  
A C:\rails\your\_app\vendor\plugins\rails\_cron\tasks  
A C:\rails\your\_app\vendor\plugins\rails\_cron\tasks\startup.rake  
A C:\rails\your\_app\vendor\plugins\rails\_cron\lib  
A C:\rails\your\_app\vendor\plugins\rails\_cron\lib\rails\_cron.rb  
A  
C:\rails\your\_app\vendor\plugins\rails\_cron\lib\acts\_as\_background.rb  
A C:\rails\your\_app\vendor\plugins\rails\_cron\CHANGELOG  
A C:\rails\your\_app\vendor\plugins\rails\_cron\README  
Checked out revision 25.

The RailsCron plugin is now installed. To remove it later, type:  
ruby script\plugin remove rails\_cron
