🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
cron launching but not executing script
November 7, 2016
Edited: November 7, 2016
September 20, 2023
Copy to clipboard: false
/assets/js/search.js will update text..
It looks like the executable
ruby is not in
cron’s path, so you need to use the full path to the executable.
monday.sh script from:
#!/bin/bash ruby ~/Documents/Scripts/monday_task.rb >> ~/Documents/Scripts/monday
#!/bin/bash /home/asarluhi/.rvm/rubies/ruby-2.3.1/bin/ruby /home/asarluhi/Documents/Scripts/monday_task.rb >> /home/asarluhi/Documents/Scripts/monday
syslog demonstrates the
monday.sh script is being run on time so absolute path-names is the only answer. As per OP comment
ruby also has to be prefixed with absolute path-name.