Skip to content

Piping output from one command into another command #3447

Answered by ipetkov
serbanrobu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @serbanrobu, thanks for bringing this up! As things stand today there isn't an ergonomic way to perform the conversion, but I've opened #3466 which should make this easier to perform the conversion.

In the meantime, you could try getting yourself unblocked by manually creating an anonymous pipe and passing in the write/read ends into the child processes (tokio will not capture and manage the child's stdio handles if they are explicitly set to a particular file descriptor).

Hope this helps, but don't hesitate to ask if you have other questions!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@serbanrobu
Comment options

Answer selected by serbanrobu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants