Analog of the function "system" in C ++


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!


Probably the Process module will have what you need:


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.


Thank you! Much obliged!