exec

suspend fun exec(builder: ExecArgumentsBuilder.() -> Unit): CommunicateResult

Launch a process, communicate with it and check the result.

Delegates to Process, communicate and CommunicateResult.check as needed.

Return

result of communicate

Parameters

builder

builder for method arguments

Throws

if check = true and the process didn't terminate normally.

if another process error occurs

IOException

if an IO error occurs in the pipes