Join Slack
Powered by
if I want to execute a shell command (and parse ma...
# scripting
e
elect
09/14/2021, 8:26 PM
if I want to execute a shell command (and parse manually what it prints out) in a kotlin script file, what are my options? I saw kotlin-shell, but I couldnt understand how to read the output, or Turtle, which looks simpler (but I didn't try it yet)
m
mbonnin
09/14/2021, 9:04 PM
https://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html
mbonnin
09/14/2021, 9:05 PM
Example there:
https://github.com/dailymotion/kinta/blob/master/kinta-lib/src/main/kotlin/com/dailymotion/kinta/integration/commandline/CommandLine.kt#L54
p
pgreze
09/17/2021, 9:16 AM
shameless self promotion
👼
https://github.com/pgreze/kotlin-process
e
elect
09/17/2021, 9:34 AM
self promotion should not be blamed 🙂
➕ 1
❤️ 1
170
Views
Open in Slack
Previous
Next