I've tried adding in PERL5LIB for cron; still a problem the code that
falls over in the crontab is as follows:
$result = eval { $nt->update($text) };
if ( $@ )
{
errorTrap("update failed because: $@");
}
When it runs on the command line no errors; however inside a cron it
return 'OK' in $result and
$@ returns a code 200 (ie a success code) and then fails....
On Sep 23, 7:24 am, Marc Mims <[email protected]> wrote:
> * Darren <[email protected]> [100922 08:53]:
>
> > I'm using Perl with NET::Twitter::Lite to send messages to an account
> > on Twitter which works fine from the command line but as soon as I put
> > it inside a CRONTAB it won't work at all. I've got all the paths
> > correct for a script within a crontab, it just seems to fail at the
> > point it tries to send an update to Twitter...
>
> > Any clues???
>
> This typically occurs when you have the PERL5LIB environment variable
> set in .bashrc (or elsewhere) in your login enviroment, but not in cron.
> Check for PERL5LIB differences between the two environments.
>
> -Marc
--
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