How can I get the process id of the shell script started with ProcessBuilder?
String cmd[] = { "sh", "-c", "ls -l" };
        ProcessBuilder pb = new ProcessBuilder(cmd);
        pb.redirectOutput(new File(request.getParameter("output_file_name")));
        Process p = pb.start();
        try {
            p.waitFor();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        p.destroy();
 
    