run

Convenience method to run a command and pipe output to a file.

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

Parameters

cmd string

The command to run.

outputFile string

The file to send output to.

Return Value

Type: int

The exit code from the command.

Meta