run
open fun run(argv: List<String>, timeoutMillis: Long? = null, onOutput: (String) -> Unit): CommandResult?(source)
Like run, but hands the merged output to onOutput while the process runs. The result carries the exit code and an empty output; the callback has seen all of it. Past timeoutMillis the child is killed and the result carries TIMED_OUT_EXIT_CODE. A host that can measure the child fills CommandResult.usage.