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

Pàgina inicial
Delete this message
Reply to this message
Autor: Bernhard R. Erdmann
Data:  
A: John W Baxter
CC: exim-users@exim.org
Assumpte: Re: [Exim] exigrep (Exim 3.35) and gzipped logfiles
> 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


This does not prove zcat and gunzip being hard links to each other.
There are just two files having the same number of links, the same size
and they were last modified at the same day.

Having the same inode number on a single filesystem proves them to be
hard links:
$ ll -i /bin/zcat /bin/gunzip
 786622 -rwxr-xr-x    3 root     root        50652 Feb  8  2001
/bin/gunzip
 786622 -rwxr-xr-x    3 root     root        50652 Feb  8  2001
/bin/zcat


And where's the third link?
$ find / -mount -inum 786622 -ls
786622   52 -rwxr-xr-x   3 root     root        50652 Feb  8  2001
/bin/zcat
786622   52 -rwxr-xr-x   3 root     root        50652 Feb  8  2001
/bin/gunzip
786622   52 -rwxr-xr-x   3 root     root        50652 Feb  8  2001
/bin/gzip


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


Many thanks! That did the trick. After setting it to /bin/zcat instead
of /usr/sbin/gunzip gzipped logfiles are handled as expected.