Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: How to set up cron? #27

Open
robbrandt opened this issue Feb 23, 2024 · 1 comment
Open

[Question]: How to set up cron? #27

robbrandt opened this issue Feb 23, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@robbrandt
Copy link

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?

@robbrandt robbrandt added help wanted Extra attention is needed question Further information is requested labels Feb 23, 2024
@RZN-FFEvo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants