The service provided for my own and three other sites I manage has just
started to send the daily logs as gz files attached to an e-mail.

Having tediously saved the gz files to the correct directories I would
like to use the Uncompress command in Analog to extract the data, using
WinZip v8.1.  Note the Command Line version of WinZip will not do this
at the moment as it can only extract zip files and not gz files.  

After some discussion with WinZip Help I discovered that from the
Command Prompt, whilst in the Analog directory, I could extract a single
file with the following command:-

analog 5.24>"c:\program files\utils\winzip\winzip32" -e
"..\webstats\logs\www.thewendyhse.co.uk-2002-08-22.log.gz"
..\webstats\logs\

This command does not work with wildcards, you need to have the exact
filename, further discussion produced the following command, which will
extract the contents of all the gz files in the specified directory

analog 5.24>FOR %n in (..\webstats\logs\*.gz) DO "C:\Program
Files\Utils\Winzip\winzip32" -e %n ..\webstats\logs\

I then added this command to my analog configuration file, after the
Logfile command, I also tried placing it before Logfile.  I have a
standard analog.cfg file set-up, together with a series of additional
configuration files to produce specific reports for specific sites.  The
uncompress command was added to the specific configuration files, though
I also tried it with the main configuration file, but get the same
message.

UNCOMPRESS FOR %n in (..\webstats\logs\*.gz) DO "C:\Program
Files\Utils\Winzip\winzip32" -e %n ..\webstats\logs\)

and received the following on-screen message

analog 5.24>analog +gtwh-2002.cfg
analog: analog version 5.24/Win32
F: Closing configuration file analog.cfg
F: Opening twh-2002.cfg as configuration file
analog: Warning C: Too many arguments for configuration command:
ignoring end
  of line starting:
  UNCOMPRESS FOR %n in (..\webstats\logs\*.gz" DO
  (For help on all errors and warnings, see docs/errors.html)
F: Closing configuration file twh-2002.cfg

Interestingly, Analog ignores whichever command which immediately
follows Uncompress.  I have tried enclosing the command in brackets and
quote marks but this doesn't make any difference.

I am currently running Analog 5.24 on Windows XP, I also tried this on
my other system running Windows Millennium and again this doesn't work.

I did think that if this problem could be solved it might be worth
adding to the Analog help files as there are a lot of other
Windows/WinZip users out there.  Programming not being my forte any help
you can provide to help sort this would be most appreciated.

Many thanks



Wendy Ford
www.thewendyhse.co.uk

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to