I'm able to run Groovy scripts from Groovy using
proc = "cmd /c groovy BillingServer.groovy".execute(null, new File("C:\"))
However, I can't find a way to then terminate/kill the process. waitForOrKill(1) and destroy() "act" like they've worked, but the external process continues to run. Calling exitValue() fails with
java.lang.IllegalThreadStateException: process has not exited
How do I kill the process I've started?