I would like to call a unix system command in java code, I write code like this:
String cmd = "split -a -d -b 10M test.txt";
Process execProc = Runtime.getRuntime().exec(cmd);
I hope when the external command is finished, I could continue to execute the following program. How to implement it?