twitter - Crontab and perl -


i have issue perl script , cpan twitter module.

i have script runs speedtest, , trying post result twitter.

i have managed script running manually running ./speedtest.pl user account, when try , run using crontab error.

i have installed net::twitter, file::homedir , config::tiny using

cpanm net::twitter 

etc.

(note: no sudo) following error when run script local crontab:-

can't locate net/twitter.pm in @inc (you may need install  net::twitter module) (@inc contains: /etc/perl /usr/local/lib/arm-linux- gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux- gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf /perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) @ /home/pi /speedtest.pl line 99. begin failed--compilation aborted @ /home/pi/speedtest.pl line 99. 

can please point me in right direction? suspect has net::twitter etc ended i've no idea how fix crontab knows find it.

speedtest.pl here

the perl installation run command line different 1 run system when crontab job executes

try which perl, , @ output of same command run under cron

there few ways fix this, depending on configuration of system. obvious use full path own copy of perl, while things going bad idea


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -