On Tue, 31 May 2005 08:42:59 -0400 Aengus is rumored to have said: > [EMAIL PROTECTED] wrote: > > 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. > > > 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.
My script runs against all sites, so I have all of my log files defined in analog.config. However, when I turned debug on, I got a ton of garbage on my screen... took a while, but I finally figured out that my Python script was constructing the command as "/usr/local/bin/analog ...". That command was getting passed to a function which was prepending "/usr/local/bin/analog" before executing the command. Iow, "/usr/local/bin/analog /usr/local/bin/analog". Duh! Thanks for your help. +------------------------------------------------------------------------ | 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 +------------------------------------------------------------------------

