fun exec(configuration: ExecSpec.() -> Unit): ExecResult
Executes an external command.
This method blocks until the process terminates, with its result being returned.
configuration
- The block to use to configure the ExecSpec.
Return
The result of the execution.