# Help

**URL:** <https://www.ruby-forum.com/t/help/178660>\
**Category:** Rails\
**Created:** [November 9, 2009, 3:56am UTC](https://www.ruby-forum.com/t/help/178660 "2009-11-09T03:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [November 9, 2009, 3:56am UTC](https://www.ruby-forum.com/t/help/178660/1 "2009-11-09T03:56:36Z")

</div>

hi all…  
I m using cron for my application.  
already for my 1st task i use the schedule.rb  
again i want to use cron job again for my 2nd task.  
is it possible to use the same schedule.rb file?  
why i ask is whenever i modify any of my tasks settings it overwrites  
the schedule.rb file.  
so how can i solve this…  
any ideas.  
Thanks for Any HELPS

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [November 9, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/help/178660/2 "2009-11-09T16:53:14Z")

</div>

Quoting Newb N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Thanks for Any HELPS

I’ll assume you are using Javan’s whenever for a starting point. This  
generates a crontab file. You should be able to add a second task to  
the  
config/schedule.rb file, re-generate and update or overwrite your  
existing  
crontab file. I am unclear what is overwriting the schedule.rb file.  
As I  
read the whenever documentation, whenever can modify your crontab, but  
you  
modify schedule.rb.

I notice there are many forks of whenever, if you give us more details  
about  
which version, whether you are using Capistrano for deployment (which  
will  
modify schedule.rb on the production servers), etc. we may be able to  
help.

Jeffrey
