“Kill a process tree” on windows using Java

前端 未结 3 1095
闹比i
闹比i 2021-01-13 07:12

I have a Java webstart process that is part of a windows batch script. I\'m using the javaws command in a batch script in this case. This match script ( start.bat) is invoke

3条回答
  •  滥情空心
    2021-01-13 07:34

    As far as I know, there's no such option in commons-exec. It's not even possible to obtain the PID of whatever process you just started. You could trap the kill signal within your bash script, and have the handler kill the subprocess(es) when the script process is killed.

提交回复
热议问题