Results 1 to 1 of 1
Thread: cron job won't run - ruby issue?
Jun 19, 2007, 17:13 #1
- Join Date
- Jul 2006
- 0 Post(s)
- 0 Thread(s)
cron job won't run - ruby issue?
I created a shell script that i placed in /etc/cron.daily , this is the script:
/usr/bin/ruby /var/updatelistings/update3.rb >> /var/updatelistings/log
it runs a ruby script that updates a db and i want to place the output in the log file in the same dir. when i run the ruby script from a separate directory I get this error:
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- librets (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
I am guessing this issue has to do with the require's i have set, this is them:
#!/usr/bin/env ruby require "rubygems" require "mysql" require "RMagick" require "librets"