Operating System - HP-UX
1833750 Members
2925 Online
110063 Solutions
New Discussion

command "compress" - error code:512

 
Inesa Clinko
Advisor

command "compress" - error code:512

Please help me!
After using "compress" command with
binary file "file" I accept an error
code: 512. As far as it is in script
with using ">dev/null" I cannot repeat the situation. Can I find what is the description
of this code:512 for command "compress"?
Thanks


3 REPLIES 3
Francisco J. Soler
Honored Contributor

Re: command "compress" - error code:512

Hi,

Go to
http://fusion.gat.com/docview/compress.html

and search for "512" string without ""

Frank.
Linux?. Yes, of course.
Inesa Clinko
Advisor

Re: command "compress" - error code:512

Thanks,
but your link is wrong :))
Please write me the right link.
Regards, Ina
Francisco J. Soler
Honored Contributor

Re: command "compress" - error code:512

Hi

The link works for me, but here is another one:
http://www.hmug.org/man/1/compress.html

In facth is the man of compress and there is a paragraph that says:
-------------
...
compress uses a modified Lempel-Ziv algorithm. Common substrings in the
file are first replaced by 9-bit codes 257 and up. When code 512 is
reached, the algorithm switches to 10-bit codes and continues to use more
bits until the limit specified by the -b flag is reached (the default is
16). Bits must be between 9 and 16.
----------------

Hope this helps.
Frank.
Linux?. Yes, of course.