Executing child Command that uses stdout in raw mode

I'm trying to find a way to execute a Command that uses stdout in raw mode.

For example, running cargo build from my binary and seeing realtime the compilation status updates while it's running.
Is there any way to achieve this using Command or do I need something else instead?

Yes, it's possible. .status() (waits for the process to complete before returning) or .spawn() (run detached, though you can "join" using .wait()) will accomplish this.

1 Like


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.