I have a bash script that is invoked from a cron job which has the following lines:
source ~/.bashrc
jruby run.rb
.bashrc adds jruby to the path.
I am able to invoke the script directly on a terminal but the cron fails with “jruby not found”
Any pointers ?
Your must set your
PATHin the script so thatjrubyis included in it.