java shell script question
I am de开发者_如何学JAVAveloping a license Generation tool in java.I required to call a shell script from my java program which is license generation tool and after that I have to send command to license generation tool which takes a xml as a input but I am unable to do it please help me
Runtime.getRuntime().exec("here_you_add_your_shell_commands");
- API Doc
Try:
ProcessBuilder prBuilder = new ProcessBuilder(your_script/command, arg1, arg2);
prBuilder = prBuilder.directory(your_working_dir);
Process p = prBuilder.start();
精彩评论