: Does anyone know of a version of gzip for AIX that has some kind of
: progress indicator? Or a capability to estimate the resulting gzipped
: file size?
: The problem with the version I have is that, when gzipping very large
: files, I have no idea of how long it is going to take, and no idea of
: how large the resulting file is going to be.
Since gzip reads the file sequentially, you can use lsof to determine
the offset (if you dont have lsof, get it now!):
$ ls -l hugefile
-rw-r----- 1 root system 793770367 May 29 11:10 hugefile
$ gzip hugefile &
$ lsof -oo0 hugefile | grep gzip ; ls -l hugefile.gz ; ps -oetime -p 87328
gzip 87328 root 3r VREG 40,4 0t173572096 9731 hugefile
-rw------- 1 root system 9142272 May 29 11:16 hugefile.gz
Assuming the file is more or less homogeneous you can obtain an
estimate of the total size and time by linear extrapolation.
Vienna University Computer Center