andreas.cahen / gmail.com wrote: > Hi! > > Hopefully this is the right place to post my problem.. any help is > appreciated! > > I am using two Ruby scripts on my *inux server to purge old records out > of a mysql database. These two scripts run, or should, as cronjobs. If > I start those scripts directly from the shell it all works fine. But as > a cronjob I get the following error: > > /backups/scripts/delete_old.rb:1:in `require': No such file to load -- > dbi (LoadError) > from /backups/scripts/delete_old.rb:1 > > The command for the cron job is: ruby /backups/scripts/delete_old.rb > > Where did I go wrong? :) Are there any environement variables which I > forgot to set? What shebang line are you using? What user account is executing the code? > > Thanks!! > > -Andreas > > > . > James Britt -- http://www.ruby-doc.org http://www.rubyxml.com http://catapult.rubyforge.com http://orbjson.rubyforge.com http://www.jamesbritt.com