New111
12/18/2019, 8:53 AMProcessBuilder("/bin/sh", "-c",
"java -jar $jarName -f $configName ${args.joinToString(" ")} &")
.start()
how can I redirect stdout of the child to stdout of the parent process (so I could see all the messages together) ? The following code using inheritIO
doesn't work either:
ProcessBuilder("/bin/sh", "-c",
"java -jar $jarName -f $configName ${args.joinToString(" ")} &")
.inheritIO()
.start()
Any clue where the problem is ? Is it somehow related to the fact that the child process writes to log file ?spand
12/18/2019, 8:54 AMAlowaniak
12/18/2019, 8:55 AMNew111
12/18/2019, 8:56 AMAlowaniak
12/18/2019, 8:57 AMNew111
12/18/2019, 8:58 AMNew111
12/18/2019, 9:00 AMspand
12/18/2019, 9:04 AMspand
12/18/2019, 9:06 AMNew111
12/18/2019, 9:08 AMspand
12/18/2019, 9:12 AMNew111
12/18/2019, 9:13 AMspand
12/18/2019, 9:13 AMNew111
12/18/2019, 9:14 AMAlowaniak
12/18/2019, 9:19 AMNew111
12/18/2019, 9:35 AM&
is an anti-pattern. How do I start another process in the background in kotlin > What is the kotlin way to do that ?Alowaniak
12/18/2019, 9:42 AMProcessBuilder...start()
starts the process in the background...? (Or rather just starts a new process which runs on it own etc.)
So what exactly do you mean with background?New111
12/18/2019, 10:36 AM