Process log_remover = Runtime.getRuntime().exec("echo \"bleh\" > test.txt");
log_remover.waitFor();
log_remover.destroy();
이실행 유닉스 런타임 클래스를 사용하여 자바에서 명령을
Process node_creation = Runtime.getRuntime().exec("cp -r ../HLR"+String.valueOf(count-1)+" ../HLR"+String.valueOf(count));
node_creation.waitFor();
node_creation.destroy();
그러나이 작품 아무것도하지 않습니다 : S
그리고 무엇이 문제입니까? –
롤인가요? –