Contents

subprocess_run(cmd_array, opt)

handle command lines with spaces input each segment of the command as an element in a string array this is how python subprocess.run works

Inputs

Outputs

Example

sys.subprocess_run(["mpiexec", "-help2"]) sys.subprocess_run(["ls", "-l"]) sys.subprocess_run(["dir", "/Q", "/L"])

NOTE: if cwd option used, any paths must be absolute or relative to cwd. otherwise, they are relative to pwd.