i wish to compress data stream by lzma program
pylzma is not ready for this, so i decide to use external lzma program
problem with lzma is like problem with gzip...
User Profile
Collapse
-
i need to proceed data strem so if i send EOF stream will be interupted...Leave a comment:
-
Comunicate with external programs via popen
OS linux 2.6.18
python 2.4.3
i tried to compress data throw gzip using popen2.popen3
but can't recive thouse 5 bytes, program hangs on readCode:import popen2 a=popen2.Popen3("gzip -f") a.tochild.write("test data") a.tochild.flush() a.fromchild.read(5) #try to read 5 bytes from gzip
cat /filename |gzip -f>filename2 - works excelent...
No activity results to display
Show More
Leave a comment: