trap exit and when you see a :EXIT message kill the process.
I am not sure what you want to achieve, running a long running external process through System.cmd does not seem right. You can use a port at least, or something even fancier.
trap exit and when you see a :EXIT message kill the process.
I am not sure what you want to achieve, running a long running external process through System.cmd does not seem right. You can use a port at least, or something even fancier.