[EMAIL PROTECTED] wrote:
> I'm running analog 5.32 on Mandrake (2.6.3-7mdk kernel).  I
> usually run analog from a set of Python scripts and it has been
> working well 'til now.
>
> I have a new script executes the following command:
>
> /usr/local/bin/analog +F050424 +T050528 +x -m +W +d +h +S +l +L +Z +o
> +r -i +t +z +P +E +I +f +s +N +n +Y +y +k +K -B -b -p +v +R +M +u
> +j +J +c +C"LOCALCHARTDIR
> /home/public/www/theotherbell/html/httplogs/monthly/" +C"CHARTDIR
> http://www.theotherbell.com/httplogs/monthly/"; +C"HOSTURL none"
> +O/home/public/www/theotherbell/html/httplogs/monthly/monthly.html
>
> Note that line breaks are for readability only
> When executed from the command line, analog generates a proper
> report for 1000's of request.  However, when I execute the same
> command from a Python script, analog generates an HTML page with
> nothing more than a General Summary for 0 requests.
>
> I know I'm not fat-fingering the command because my Python script
> prints the command to the console immediately before executing it.
> When I copy and paste that same command to the command line, it
> works just fine.
>
> Does anyone have a clue as to what could be wrong?

You aren't specifying a logfile in the command line above. It's possible
that when you run Analog from Python, the "local working directory" is
different, and Analog isn't finding the analog.cfg file where you've
specified your logfile (though I'd expect other errors too if that was the
case).

Try turning DEBUG ON, and see what in recorded in the Errfile.

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  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