I have issue with some ruby script and rails, rake script not running as cronjob,
so you can use the following solution.
[root@localhost ] vi /usr/bin/railscron
/usr/local/bin/rake user:details RAILS_ENV=production >> /tmp/test
echo "its running"
* Set as Cronjob now:
* 10 * * * /usr/bin/railscron
If any query, Please let me know. I am here to solve your issue.