I'm using GNU Parallel to speed up downloading of several thousand files during a build process running in docker container. This operation is lengthy and I want to have a progress bar that will periodically log that everything is going OK. This process will also be run asynchronously and logs will be gathered in CloudWatch. Preferably I'd like to use one of existing tools instead of coming up with custom solution that will print $(find output_dir -type f | wc -l ) / $numfiles
.
I've used --bar
parameter for parallel
but instead of printing a line on every change (as it does when run outside of docker) but only the last "line" (starting with 100%
) was printed, possibly because only the last line contained a new line. I've also tried to use pv
(especially with --interval
flag that would allow me to log progress only once a minute or so) but the result was the same.
Is there any other tool I can use to achieve my goal? Or maybe I can somehow make parallel work?