How to invoke sh file in linux terminal using Runtime.getRuntime().exec
in java ?
I want to invoke the sh file in new terminal from java code. If i run it in terminal only it runs as a separate process, which will not be closed even if my programs exits. And thats why I'm not using ProcessBuilder
, which stops the process invoked by it if the program using it exits.