Java Kill Process killProcessNix(String pid)

Here you can find the source of killProcessNix(String pid)

Description

kill Process Nix

License

Apache License

Declaration

public static boolean killProcessNix(String pid) throws InterruptedException, IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

public class Main {
    public static boolean killProcessNix(String pid) throws InterruptedException, IOException {
        Runtime.getRuntime().exec("kill " + pid).waitFor();
        return true;
    }/*from  www .ja v a 2s . co m*/
}

Related

  1. killProcess(int port)
  2. killProcess(String name)
  3. killProcess(String processName)
  4. killProcess(String processName)
  5. killProcessesTree(String rootNamePart)
  6. killProcessWithArgs(List args)