https://kotlinlang.org logo
#scripting
Title
# scripting
t

Tmpod

01/08/2020, 4:08 PM
Hey! Does anyone know how I can capture stdout and stderr from a script? I'm using the "vanilla" kotlin scripting API
i

ilya.chernikov

01/08/2020, 4:33 PM
Via the JVM's
System.setOut/Err
, there are no script-specific solutions.
t

Tmpod

01/08/2020, 4:45 PM
So I'd have to use that inside the script?
n

Nikky

01/08/2020, 4:50 PM
more like set it before the script is evaluated or in the configuration..
👌 2
40 Views