Hi TJ,

The shell environment in a cron job is not necessarily the same environment
as when you execute scripts from your user account. Here's an article with
some tips on debugging the running environment while in a cron job:
http://stackoverflow.com/questions/2135478/how-to-simulate-the-environment-cron-executes-a-script-with

Essentially, you'll need to make sure that the environment is aware of the
location of Ruby, Rubygems, and the gems required to execute Twurl.

Taylor

On Mon, Oct 4, 2010 at 11:56 AM, TJ Luoma <luo...@gmail.com> wrote:

> I'm getting the following error when running
>
> twurl -t "/1/statuses/user_timeline/amazondeals.rss"
>
> in a cron script:
>
>
> /home/luomat/.gem/ruby/1.8/gems/twurl-0.6.0/bin/../lib/twurl/configuration_controller.rb:2:
> uninitialized constant Twurl::AbstractCommandController (NameError)
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>       from
> /home/luomat/.gem/ruby/1.8/gems/twurl-0.6.0/bin/../lib/twurl.rb:10
>       from
> /home/luomat/.gem/ruby/1.8/gems/twurl-0.6.0/bin/../lib/twurl.rb:9:in
> `each'
>       from
> /home/luomat/.gem/ruby/1.8/gems/twurl-0.6.0/bin/../lib/twurl.rb:9
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>       from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
>       from /home/luomat/.gem/ruby/1.8/gems/twurl-0.6.0/bin/twurl:2
>       from /home/luomat/bin/twurl:19:in `load'
>       from /home/luomat/bin/twurl:19
>
> I have no idea what this means, or if it is important or not.
>
> TjL
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to