Without doing stdout redirection. Is it possible to have a silent run of 7za?
Best Answer
Yes that is possible.
Just add -y -bsp0 -bso0 to your command line. Those switches will disable progress, output reporting & assume yes answer to any possible questions, while still showing you any errors (which is perfect for cron usage).
Example:
7za a result.tar.7z -y -bsp0 -bso0 example.tar
From 7za --help:
-bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
-y : assume Yes on all queries
Tested to work on 7z version: 16.02.
Note, that version 9.20 bundled with some older OS (you can check your version by running 7za i) doesn't support that feature. You can download latest statically linked binaries at the official website.
Without options, each jobspec is removed from the table of active jobs.
If the -h option is given, the job
is not removed from the table, but is
marked so that SIGHUP is not sent to
the job if the shell receives a
SIGHUP. If jobspec is not present, and
neither the -a nor -r option is
supplied, the current job is used. If
no jobspec is supplied, the -a
option means to remove or mark all
jobs; the -r option without a
jobspec argument restricts operation
to running jobs.
Uncompress the gzip'd file onto a Windows desktop machine, and use vmware converter to shrink the disks, or basically get rid of the zero'd space at the end (which is why you are getting such a high compression rate.
Best Answer
Yes that is possible.
Just add -y -bsp0 -bso0 to your command line. Those switches will disable progress, output reporting & assume yes answer to any possible questions, while still showing you any errors (which is perfect for cron usage).
Example:
From
7za --help
:Tested to work on 7z version: 16.02.
Note, that version 9.20 bundled with some older OS (you can check your version by running
7za i
) doesn't support that feature. You can download latest statically linked binaries at the official website.