Class ExecUtility
Utility class for executing shell commands synchronously and capturing their output.
Inherited Members
Namespace: Unity.SimulationPro
Assembly: Unity.SimulationPro.Capture.dll
Syntax
public static class ExecUtility
Methods
Execute(string, string, params string[])
Runs an external command synchronously and returns its output.
Declaration
public static string Execute(string directory, string command, params string[] arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| string | directory | Working directory for the command. |
| string | command | Shell command to run. |
| string[] | arguments | Variable length list of arguments. |
Returns
| Type | Description |
|---|---|
| string | The standard error output if non-empty; otherwise the standard output. |