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

exec: stream command output #2166

Merged
merged 1 commit into from
Apr 21, 2024
Merged

Conversation

ldez
Copy link
Member

@ldez ldez commented Apr 20, 2024

The command outputs will be displayed in realtime.

Fixes #2165

@ldez ldez added this to the v4.17 milestone Apr 20, 2024
@ldez ldez requested a review from dmke April 20, 2024 18:59
@ldez ldez merged commit 42aa57e into go-acme:master Apr 21, 2024
4 checks passed
@ldez ldez deleted the feat/exec-stream-cmd-output branch April 21, 2024 16:01
return fmt.Errorf("create pipe: %w", err)
}

cmd.Stderr = cmd.Stdout
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh, that actually answers a question that I had in the back of my mind, namely how to "capture" both STDOUT and STDERR and "combine" them into a single stream. I'm glad I saw this.

Also, I didn't realize you were a maintainer. Thanks for merging this so quickly.

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

Successfully merging this pull request may close these issues.

'--dns exec' show output in real time?
3 participants