Is there an equivalent in Rust for something like:
os.run("/bin/bash ln -s /dir1 /dir2");
I want the ability to spawn a process using a string expression similar to one I would use in a ptty.
The only utility I've found for doing this is std::process::Command
, but it's not well documented and seems too complex and hard to debug.
There is In Rust, how do I invoke a system command and capture its output? that gives std::process::Command
as an answer, hence why I specified finding it as a possible option. However, I'm looking for a lower level interface to make std::process::Command
execute a single string as a query rather than forcing me to feed it the arguments one by one.