run

Runs the given command using the user's shell.

  1. int run(string cmd)
    int
    run
    (
    string cmd
    )
  2. int run(string cmd, string outputFile)

Parameters

cmd string

The command to execute.

Return Value

Type: int

The exit code from the command. Generally, 0 indicates success. If the process could not be started, -1 is returned.

Meta