Re: [Exim] exigrep (Exim 3.35) and gzipped logfiles

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: John W Baxter
Fecha:  
A: exim-users@exim.org
Asunto: Re: [Exim] exigrep (Exim 3.35) and gzipped logfiles
At 0:41 +0200 4/9/2002, Bernhard R. Erdmann wrote (having trouble with
exigrep leaving unzipped files around):
>COMPRESS_COMMAND=/usr/bin/gzip
>COMPRESS_SUFFIX=gz
>ZCAT_COMMAND=/usr/sbin/gunzip


And on our machine, gunzip is in /bin

gunzip isn't a zcat command.
gunzip -c
gunzip --stdout
gunzip --to-stdout
are zcat commands.

zcat is the gunzip binary called with the name zcat thanks to the magic of
the hard link:

[root@xxxxx ~]# ll `which zcat`
-rwxr-xr-x    3 root     root        50652 Feb  8  2001 /bin/zcat
[root@xxxxx ~]# ll `which gunzip`
-rwxr-xr-x    3 root     root        50652 Feb  8  2001 /bin/gunzip


Change your
ZCAT_COMMAND to
ZCAT_COMMAND=/path/to/zcat

(use
which zcat
to learn what the path is)

--John

--
John Baxter   jwblist@???      Port Ludlow, WA, USA