Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

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?

share|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

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
share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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