-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to pass through stdout? #50
Comments
Might be helpful of what
|
😍 This is an excellent use case that we should absolutely support. I'm guessing this is possibly related to #7 Can you describe what does happen? Does it just exit with no output, or hang indefinitely? I'd like to be able to have a smallest possible reproduction of this. |
@art-of-dom any ideas about this one? |
After a little research it looks like we can do something similar to this: https://rust-lang-nursery.github.io/rust-cookbook/os/external.html#continuously-process-child-process-outputs. It may be even simpler than this since we don't need to process the output, just display it. |
I'm pretty sure |
We have a bunch of images that need to be pushed to a registry so often, so we do them all in one big script. Problem is Gitlab's container registry constantly fails all the time so
loop
is a perfect fit for this.Trying something like:
loop -s --summary -- scripts/push-images.sh
(tried with-i
as well)But the problem is that there is zero output.
Whereas normally our
scripts/push-images.sh
outputs something like:And updates as the scripts progress through each image.
Is there anyway to keep that stdout and print it to term live as
loop
receives it from the subprocess?The text was updated successfully, but these errors were encountered: