Hello Guys,
Set cron job on linux to invoke at every 1 minute or daily base.
on command prompt:
crontab -e
add below lines
For every 1 minute:
*/1 * * * * cd /home/user/application_path && /home/user/.rvm/bin/rvm use ruby-1.9.2-p136 rake custom_task >> /home/user/crontab_errors.txt
For daily
0 0 * * * cd /home/user/application_path && /home/user/.rvm/bin/rvm use ruby-1.9.2-p136 rake reminder_email >> /home/user/crontab_errors.txt
No comments:
Post a Comment