I have started using the Whenever gem to schedule cron jobs with rails.
But sadly rake will not run, I traced the problem to the environment not being loaded.
The whenever gem generates scripts like:
/bin/bash -l -c '....
I managed to get it to work with
/bin/bash -i -c '...
[The change is -i (interactive) instead of -l (login)]
Based on the documents of cron, their syntax is correct. Can anyone give a hint to why it might fail on Ubuntu 10.4 ?
Thanks