Hello! I'm a beginner developer on Rust. I have some question. Does Rust have an analog of the function "system" as in C ++? Thank you!
1 Like
Probably the Process
module will have what you need: std::process - Rust
1 Like
If you want to run shell code, you can follow what is done in the example of Command
, which launches the shell explicitly using e.g. "sh"
with "-c"
, followed by the shell script you want to run.
1 Like
Thank you! Much obliged!