It's probably "env-related" Look at: http://stackoverflow.com/questions/2585244/rake-task-via-cron-problem-loading- http://groups.google.com/group/rubyonrails-talk/msg/128b59ee57473cfb For debugging, run "env" in a shell and at cron and see the differences. Abinoam Jr. On Wed, Dec 15, 2010 at 7:51 AM, Ryan Davis <ryand-ruby / zenspider.com> wrote: > > > On Dec 15, 2010, at 1:18, Chih tung Chao <ops.tong / gmail.com> wrote: > >> My script already have require "rubygems" > > Then you're prolly using a different ruby in cron than on cmdline. Use full path to ruby in crontab >