I can run Groovy scripts from Groovy using
proc = "cmd / c Groovy BillingServer.groovy" .execute (null, new file ("C: \"))
However, I cannot find a way to complete or kill the process. waitForOrKill(1)and destroy()“act” how they worked, but the external process continues to work. The call is exitValue()not made using
waitForOrKill(1)
destroy()
exitValue()
java.lang.IllegalThreadStateException: process did not exit
How to kill the process that I started?
, cmd /c , . , cmd groovy, waitForOrKill() cmd, groovy . cmd /c groovy, waitForOrKill() .
cmd /c
waitForOrKill()