Ask Your Question
2

How can I display a progress bar for GNU Parallel in a Docker container?

asked 2023-07-14 05:45:51 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-14 05:49:02 +0000

lalupa gravatar image

To display a progress bar for GNU Parallel in a Docker container, you can use the --bar option. This will display a progress bar showing how many jobs have completed out of the total number of jobs.

Here's an example command:

parallel --bar command-to-run ::: input-files*

To run this command in a Docker container, you can use the docker run command:

docker run my-image parallel --bar command-to-run ::: input-files*

Note that you may need to set up your Docker container to allow for terminal output in order to see the progress bar. One way to do this is to use the -t and -i options to allocate a pseudo-tty and keep stdin open:

docker run -t -i my-image parallel --bar command-to-run ::: input-files*

This should enable the progress bar to be displayed in your Docker container's terminal.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-14 05:45:51 +0000

Seen: 14 times

Last updated: Jul 14 '23