Goaccess: cron problem due to missing path

Created on 24 Aug 2018  路  2Comments  路  Source: allinurl/goaccess

I try to run this cron job but goaccess can not creat the report,
*/2 * * * * goaccess access.log -a > report.html
although when i run this command from my ssh it works fine

command-line options cron other question

Most helpful comment

Mostly due to missing path entries when run via crond.
Chech which is the full path of goaccess: which goaccess
You'll get something like: /usr/local/bin/goaccess
In your cron line use the full path above instead of just goaccess.
*/2 * * * * /usr/local/bin/goaccess access.log -a > report.html

All 2 comments

Mostly due to missing path entries when run via crond.
Chech which is the full path of goaccess: which goaccess
You'll get something like: /usr/local/bin/goaccess
In your cron line use the full path above instead of just goaccess.
*/2 * * * * /usr/local/bin/goaccess access.log -a > report.html

Thank you. it works now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tbarbette picture tbarbette  路  3Comments

domainoverflow picture domainoverflow  路  3Comments

Tassleh0ff picture Tassleh0ff  路  4Comments

LoanDEV picture LoanDEV  路  3Comments

mhipo1364 picture mhipo1364  路  3Comments