我用ProcessBuilder启动一个进程,但我需要获取PID。 (进程ID)
List<String> bel = Arrays.asList(befehl.split(","));
ProcessBuilder bu2 = new ProcessBuilder(bel);
bu2.directory(new File("/home/cloud/" + modi + "/" + name));
Process p = bu2.start();
我怎么能指出这个?
答案 0 :(得分:1)
type Props = XOR<{ children: React.ReactNode; title: string; subtitle: string; subtleSubtitle?: boolean }, { children: React.ReactNode; title?: string }>
myFunc({ subtitle: "some text" }) // Error
myFunc({ subtitle: "some text", children: <p>hi</p> }) // Error
myFunc({ title: "cool", subtitle: "some text", children: <p>hi</p> }) // Works