Problems in setting up the CronJob
I have a rails application and trying to setup the cronjob to send out the emails.
Here is my Cronjob,
20 9 * * * /bin/sh -c "cd /srv/www/railsappdirectory && RAILSENV=development /usr/bin/env rake email:sendsignupemail >> /srv/www/railsappdirectory/log/cronlog.log 2>&1"
When I try this, I get an Error.
Error Message:
/usr/bin/env: rake: No such file or directory
Looks like the Path problem. Any help would be appreciated.
Thanks,
Muni.
1 Reply
Also, don't append directly to log file. Use a pipe agent that supports rotation.