execute

fun execute(vararg command: String, timeoutSeconds: Long = 30): String?

Runs command and gives back its standard output, or null when it fails or takes longer than timeoutSeconds.