To run a rake task within a shell script using a cron job, do the following: First, specify the shell at the top of your .sh script #!/bin/sh Then, change your directory to your rails application in your .sh script cd /home/user/app/current Now, you need to manually define your PATH within the script: […]