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
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.