rush icon indicating copy to clipboard operation
rush copied to clipboard

Please Update the new feature of progress bar

Open 0xhunster opened this issue 3 years ago • 4 comments

Hi there, I hope you are doing well. Rush is a seriously very good script for parallel jobs/works. Many features in there. It would be great if there was a progress bar. It would be nice to see how many lines worked. This feature included an Interlace script. (https://github.com/codingo/Interlace) This feature really awesome. Do you have any plans to do that?

15608

0xhunster avatar Jun 05 '21 11:06 0xhunster

https://github.com/shenwei356/rush/pull/39

shenwei356 avatar Aug 05 '22 11:08 shenwei356

https://github.com/shenwei356/rush/releases/tag/v0.5.0

shenwei356 avatar Aug 05 '22 11:08 shenwei356

Thanks for the update. but all result shows after the progress bar, which is very disturbing, Sometimes the results are broken and not understood. Please change that, So that all results show above the progress bar.

image

0xhunster avatar Aug 29 '22 04:08 0xhunster

The process bar is outputted to STDERR, which could be mixed with output from STDOUT.

So you can either write results to a file:

seq 10 | rush -j 1 'echo {}; sleep 1'  --eta > result.txt

Or redirect the progress bar to a log file.

seq 10 | rush -j 1 'echo {}; sleep 1'  --eta 2> progress.txt

During the running, you can check progress.txt in another terminal.

less progress.txt

shenwei356 avatar Aug 29 '22 04:08 shenwei356