in reply to Getting Moose &/or Net::Twitter to work from cron.

... well, Net::Twitter::Lite works well enough for my current purposes. I'll keep tinkering with this, though, for my own edification. Thank you for your help. :)
  • Comment on Re: Getting Moose &/or Net::Twitter to work from cron.

Replies are listed 'Best First'.
Re^2: Getting Moose &/or Net::Twitter to work from cron.
by rastoboy (Monk) on Mar 29, 2010 at 02:36 UTC
    Be sure to pay attention to the user cron is running as. I ran into similarly bizarre behavior with a CGI I wrote when I realized my "at" command, executed from within it, was running as "nobody" and didn't have access to what it needed. Not the same but similar.

    You could also try spawning a bash shell and running it from within that, instead of directly, ie.

    bash myperlscript.pl

    instead of just:

    myperlscript.pl

    Also check /var/log/cron for errors.