Hello, what is the kotlin-native to way to execute...
# kotlin-native
n
Hello, what is the kotlin-native to way to execute another jar (it is not fork !) and then depending on an action restart it or kill it ?
s
Kotlin native doesn't understand jars as those are a jvm thing. You write code to execute another process's in k/n. That process could be the Java virtual machine where you are passing the arguments for the jar to the Java command. On Mac and Linux this would use the posix system calls.
n
@Sam this was my understanding as well. But I need kotlin native way to execute some other executable (whether it is java or something else) with parameters.
s
It will be platform dependent.
n
what about Linux ?