From: David Rio Date: 2009-06-05T23:25:35+09:00 Subject: Re: Problem with cronjob and ruby script On Fri, Jun 5, 2009 at 3:48 PM, Matthew Lagace wrote: > Hello, > > I'm trying to get a ruby script run into a crontab and it keeps failing > saying it can't find my mechanize gem. When I run the script form the > command line, everything runs fine and I don't get any failures. > > Anyone ever had that problem before? Make sure you have this ENV variables pointing to the correct dirs: GEM_HOME=/usr/local/rubygems/gems GEM_PATH=/usr/local/rubygems/gems RUBYLIB=/usr/local/rubygems/lib/ruby/site_ruby/1.8 -drd