Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
·How to check errors/puts statements from ruby files which are under cronob
2 Posts
·How to check errors/puts statements from ruby files which are under cronob

Hi Lucky, whenever allows you to specify a file path for logging by setting the :output variable. It will then write all of your jobs' output to that file. See "Whenever's github wiki":https://github.com/javan/whenever/wiki/Output-redirection-aka-logging-your-cron-jobs for more information. Good luck.

Hi firends, I have written Ruby program ro send emails.I kept that ruby file in cron job. but i dont know how to check errrors or comments in program while running . Can anybody help me how to chekc errors in my code if that is in cronjobAm using whenever plugin to run cronjob

Person
Forum Rating: 50
Sign In To Rate Post
2 Posts
Login to add your message