The Background: I have a python script that generates a bunch of images (png format, minimum of several hundred), runs ffmpeg to turn them into a short video, and then puts all of the images into a zip archive so I can go back if I find any strange or interesting things where I want the individual frame.
The Issue: Originally the zip portion read as zip -q -T -m output *.png
but that suppressed all the output, including the statement as to whether the file is ok. Is there a way to suppress the large number of updating: Stars0053.png (deflated 5%)
without suppressing the output of the -T
switch?
Best Answer
should work too, alternative to the solution, given in the comments.
It works like this: If the first commmand (zip ...) succeeds, the following combination with && can succeed too and is performed. But if the first part fails, then the whole combination will fail, and the &&-part is skipped, but an or-combination is successfull if one of both is successful, so the ||-part is performed.
You aren't interested in the combined result (true/false), but in the side-effect: a status feedback.