> > Can someone suggest a utility that can easily compress one or multiple log files individually in gzip with a single command? I want to use gzip so Analog can easily read each compressed log file, > > but as I understand it, gzip (the original utility) can't individually "gzip" multiple files at once. I'm on Win2000. > > > (Any other solution to automatically compress log files and make them readable by Analog on Windows is welcomed!) > > gzip only compresses a single file. It doesn't matter what platform. > That's the spec. > > You can use tar to collect several files into one archive and then > compress it with gz. In fact GNU tar will do the gz compression in one > command. See http://www.gnu.org/software/tar/tar.html for details. You > can download a windows version from the cygnus project: > http://www.cygwin.com/. > > Otherwise, use any zip program, e.g. info-zip > (http://www.info-zip.org/pub/infozip/) or winzip (http://winzip.com/), > and just use the command-line interface to uncompress the files to > stdout as Analog's UNCOMPRESS command (see > http://analog.cx/docs/logfile.html#UNCOMPRESS for details) >
I read this a different way - "can gzip compress multiple files in one go ?". On win2000 and NT here, gzip *.* will compress as many files as there are in the directory. I forgot where I got the windows gzip binary (version 1.2.4) from, but it was somewhere obvious... The only problem I found was that occasionally it wouldn't unzip them again correctly, giving output errors when reading the compressed logs back into analog. So now I run analog on a separate linux box. Noel The views and opinions expressed herein are those of the author and not of Cattles plc or any of its subsidiaries. The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify the sender immediately and delete this e-mail. Please note that neither Cattles plc nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). No contracts or agreements may be concluded on behalf of Cattles plc or its subsidiaries by means of email communications. This message has been checked for all email viruses by the Energis NetscanCentral solution. +------------------------------------------------------------------------ | 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 +------------------------------------------------------------------------