How to launch another shell script as a background process?
I am launching another shell script, which runs forever, but gradle keeps waiting for that process to be terminated, and eventually the gradle hangs and keeps waiting for that process to finish. How do I launch that shell script as a background process without making gradle wait for that process to finish?
I should have mentioned that there is also Groovy’s ‘String.execute()’, where the string is the command line to execute. Like ‘ProcessBuilder’, it returns a ‘Process’ for further handling.