Without doing stdout redirection. Is it possible to have a silent run of 7za?

link|improve this question

21% accept rate
feedback

3 Answers

Looking at the output of 7za --help, I don't think so.

Is there any particular reason why you don't want to just do 7za a archive.7z files > /dev/null?

link|improve this answer
Not quite the same as quiet if that's what @romant wanted. – pavium Jan 31 '10 at 10:24
3  
@pavium True, but since there doesn't seem to be an option to run 7za in quiet mode, it looks like the best option available. – developmentalinsanity Jan 31 '10 at 12:16
feedback

Side note: xz compressor uses the same algorithm 7Zip does (LZMA) but in a way similar to gzip or bzip2 making it compatible with standard UNIX tools.

You can compress a file:

$ xz file.ext
$ ls file*
file.ext.xz

Or use it to compress a directory with tar:

$ tar cJf dir.tar.xz dir/
$ ls -d dir*
dir   dir.tar.xz
link|improve this answer
feedback

Maybe you can wrap 7za in a script, so that the place that calls it doesn't need the redirection?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.