I have a strange case, we want to collect ping (in linux machine) response, it works well if we specified ping count, however, for those endless ping, in normal case, we will use ctrl + c to stop them, then you will get a summary in linux.
However, I find it is not work if I do it in JAVA side.
My basic idea is start up a process with JAVA, then send a ping www.google.com with this process, after that, I try to send a ctrl+c (\003) to stop this process and get summary info, however, nothing happens after I send ctrl +c
After checking it a little bit, I found before ping command finishes, all of other command will just hold until it finish, so that I dont have any opportunity to close this process, if I do it with destroy, then I will lose the stream info (Summary info)
Thanks in advance.
Br, Tim