You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I have the basic functions working by reading the report files from a directory. Now I want to automate reading the files and insert the data into the database. I have so far been executing ./report-parser.pl directly from the directory it is installed into.
When setting up cron, I assumed I would be able to use the fully qualified path to report-parser.pl. But when I execute it, it complains that it cannot find OAuth.pm. I note that OAuth.pm is actually located in the /lib subdirectory.
Do I need to installed OAuth via cpan or something so that it's findable from anywhere on the sytem?
The text was updated successfully, but these errors were encountered:
add this to the top of your crontab PERL5LIB=/home/account/Open-Report-Parser/:/home/account/Open-Report-Parser/lib
.... */5 * * * * perl /home/account/Open-Report-Parser/report-parser.pl -i -info >> /home/account/Open-Report-Parser/parser.log 2>&1
So, I have the basic functions working by reading the report files from a directory. Now I want to automate reading the files and insert the data into the database. I have so far been executing ./report-parser.pl directly from the directory it is installed into.
When setting up cron, I assumed I would be able to use the fully qualified path to report-parser.pl. But when I execute it, it complains that it cannot find OAuth.pm. I note that OAuth.pm is actually located in the /lib subdirectory.
Do I need to installed OAuth via cpan or something so that it's findable from anywhere on the sytem?
The text was updated successfully, but these errors were encountered: