Thanks for the reply. Permissions are fine - analog is run as root in both instances, and the cron report file to scratch tells me that the logs were read and at what time. I should modify what I stated a little - the report is almost entirely empty. It reports 1 or 2 requests between 6am when Apache was restarted, and 6.45 when analog was run.

Paul

Aengus wrote:
Paul Shackleton <[EMAIL PROTECTED]> wrote:
  
Dear Colleagues,

I have been using analog successfully for some time but I have been
forced to run the script manually due to a failure of the script to
run correctly from the cron. Platform is Solaris 8, cron line :
45 6 * * 0  /bin/su - root -c "/usr/local/analog/analog-5.24/analog"
 >/scratch/analog.rep 2>&1

The script runs and the logs are read but the FROM and TO directives
seem to be ignored and an empty report is produced. But if I simply
run the command line ./analog manually on the Monday, without
changing the config file, it produces the report for the period
specified. I have used relative and fixed dates for the FROM and TO
directives but the problem persists. The script is scheduled to run
on Sunday morning and appears to only look for log file activity from
the Apache restart that takes place at 6am, that is 45 minutes
earlier.

I am probably missing something really obvious so apologies in
advance - I have read the manual on this one!
    

The usual problem with running Analog under cron is permissions - the
cron task doesn't have permission to access the same files that you do
when you run at the command line.

What makes you think that the logs are read? If the problem was with the
FROM/TO directives, you wouldn't expect an empty report - Analog would
include everything.

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------


  

Reply via email to