my first cron job that print 'this is cron print' to test.text file
* * * * * echo 'this is cron print' >> test.text
In rails we can use whenever gem for easy cron manage.
http://stackoverflow.com/questions/7548730/cron-job-not-working-in-whenever-gem http://stackoverflow.com/questions/1070231/rails-cron-with-whenever-setting-the-environment