Re: how to compress files
- Posted by jimcbrown (admin) Nov 10, 2013
- 1744 views
sergelli said...
In command line works well
But inside of a program, as above, res = 1
Hmm.. instead of telling gzip to send the compressed output to stdout and redirecting that into a file, have you tried using the keep option? (Requires gzip 1.6 or later)
Or copying the original file first and then running gzip on the copy?