Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final String[] cmd = {"<childProcessName>"};
- Process process = Runtime.getRuntime().exec(cmd);
- final String[] cmd = {"<childProcessName>"};
- final Process process = Runtime.getRuntime().exec(cmd);
- Runnable runnable = new Runnable() {
- public void run() {
- process.destroy();
- }
- };
- Runtime.getRuntime().addShutdownHook(new Thread(runnable));
- killall <childProcessName>
Add Comment
Please, Sign In to add comment