I want to extract a 7-Zip archive in a Python script. It works fine except that it spits out the extraction details (which is huge in my case).
Is there a way to avoid t
On Unix-like operating systems (Linux, BSD, etc.) the shell command 7z ... >/dev/null
will discard all text written by 7z
to standard output. That should cover all the status/informational messages written by 7z
.
It seems that 7z
writes error messages to standard error so if you do >/dev/null
, error messages will still be shown.