1756012 Members
3668 Online
108839 Solutions
New Discussion юеВ

Re: gzip not working..

 
SOLVED
Go to solution
chindi
Respected Contributor

gzip not working..

hi,

m getting the following error one one of my server,

root #/home/md >gzip *
gzip: invalid option --
gzip 1.3.5
(2002-09-30)
usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
-c --stdout write on standard output, keep original files unchanged
-d --decompress decompress
-f --force force overwrite of output file and compress links
-h --help give this help
-l --list list compressed file contents
-L --license display software license
-n --no-name do not save or restore the original name and time stamp
-N --name save or restore the original name and time stamp
-q --quiet suppress all warnings
-r --recursive operate recursively on directories
-S .suf --suffix .suf use suffix .suf on compressed files
-t --test test compressed file integrity
-v --verbose verbose mode
-V --version display version number
-1 --fast compress faster
-9 --best compress better
file... files to (de)compress. If none given, use standard input.
Report bugs to .

do i need to update my gzip software ??


rx6600
hpux 11i v2 march 2008
16 gb ram
6 REPLIES 6
Suraj K Sankari
Honored Contributor

Re: gzip not working..

Hi,

Did you tried with the full path
$ whereis gzip
gzip: /usr/contrib/bin/gzip /usr/contrib/man/man1.Z/gzip.1

/usr/contrib/bin/gzip * or *.*

If directory will be there then you will get a error message like
$ /usr/contrib/bin/gzip *
gzip: sap is a directory -- ignored

for unzip

/usr/contrib/bin/gzip -d *.*

Suraj
OFC_EDM
Respected Contributor
Solution

Re: gzip not working..

I ran into this once with a version of gzip. Can't recall which rev...too long ago.

I believe the work around was either

gzip ./*
or
gzip ./
or
gzip /full/path

Point is the * on it's own wasn't interpretted correctly.

Cheers
The Devil is in the detail.
V. Nyga
Honored Contributor

Re: gzip not working..

Hi,

the same version is running without problems at my 11.11.
Maybe the list of '*' is too long?
I would try to specify the filename more.
For example 'a*' - or do as Kevin suggested.

Volkmar
*** Say 'Thanks' with Kudos ***
chindi
Respected Contributor

Re: gzip not working..

hi Kevin,

its wrkng for me nw thanks...........:)
Dennis Handly
Acclaimed Contributor

Re: gzip not working..

>Kevin: Point is the * on it's own wasn't interpreted correctly.

Yes this will fail if there is a file that starts with "-".
You might be able to get it to work with:
gzip -- *

Unfortunately "--" doesn't work for "-":
gzip: compressed data not written to a terminal. Use -f to force compression.
chindi
Respected Contributor

Re: gzip not working..

Ok Denis thanks for the valuable info ...