Answer the question
In order to leave comments, you need to log in
Popen: gzip data compression on the fly, how?
I want to run linux gzip through popen (lua / php / c), write a string to it and read the already compressed response.
popen('gzip >&1', 'wb')
write(uncompressed_data)
compressed_data = read('*all')
pclose() So
gzip >&1
So?
Do I need to send some special character at the end of uncompressed_data to work properly, or will it immediately compress all incoming data to stdin?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question