Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group or aggregate output? #75

Closed
JuanCaicedo opened this issue Dec 29, 2016 · 3 comments · Fixed by #272
Closed

Group or aggregate output? #75

JuanCaicedo opened this issue Dec 29, 2016 · 3 comments · Fixed by #272

Comments

@JuanCaicedo
Copy link

JuanCaicedo commented Dec 29, 2016

If you use gnu parallel, it has one great feature of running tasks in parallel, but grouping all of the output for a each command and printing it when that command finishes. Is there a way to do this with concurrently? If not, it would be a great feature 😃

Given these files

# script-one.sh
sleep 1
echo first
# script-two.sh
echo second
sleep 2
echo third

Using GNU parallel

$ parallel bash ::: script-one.sh script-two.sh
first
second
third

Using concurrently

$ concurrently "bash script-one.sh" "bash script-two.sh"
[1] second
[0] first
[0] bash script-one.sh exited with code 0
[1] third
[1] bash script-two.sh exited with code 0
@JuanCaicedo
Copy link
Author

Wondering if anyone has any thoughts on this? I'm willing to make a PR, but want to make sure it would be a feature that would get accepted 😃

@AndrewCraswell
Copy link

This seems pretty fundamental to me. It's a big pain point to run tasks concurrently if the output can't be aggregated and instead you get hundreds or thousands of garbled output lines that you need to piece together to make sense of.

@gustavohenke
Copy link
Member

Happy new year! This is now out in v7.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants