我正在开发中java.I许可产生的工具,从我的Java程序中调用一个shell脚本要求是许可生成工具之后,我要送命令许可生成工具,这需要XML作为但输入我无法做到这一点,请帮助我java的shell脚本问题
回答
Runtime.getRuntime().exec("here_you_add_your_shell_commands");
但它只是一个命令工作,我想通过一个命令也 – 2011-04-29 11:30:02
您可以再次执行它与不同的arg。或创建一个shell脚本并调用它。 – 2011-04-29 11:32:09
尝试,
ProcessBuilder prBuilder = new ProcessBuilder(your_script/command, arg1, arg2);
prBuilder = prBuilder.directory(your_working_dir);
Process p = prBuilder.start();
个
Thnaks。
我只能执行./LicenseGen.sh命令,但我想./LicenseGen.sh下执行一个更命令plz帮助我 – 2011-05-02 06:51:33
不LicenseGen.sh开始自己的壳?(像'许可证#') – nIKUNJ 2011-05-02 07:03:42
- 1. shell脚本问题
- 2. Shell脚本问题
- 3. shell脚本问题
- 4. Ubuntu的shell脚本问题
- 5. shell脚本的问题!
- 6. 问题reterving在shell脚本
- 7. Automator bash shell脚本问题
- 8. EOF问题shell脚本
- 9. Shell脚本案例问题
- 10. applescript + shell脚本问题
- 11. Bourne Shell脚本问题
- 12. 句子问题(shell脚本)
- 13. Shell脚本变量问题
- 14. 问题在shell脚本
- 15. 简单的shell脚本的问题
- 16. 使用Sed的Shell脚本的问题
- 17. linux shell脚本kiddie的问题
- 18. shell脚本中的回显问题
- 19. shell脚本中的性能问题
- 20. 执行shell脚本的问题
- 21. shell脚本的算术问题
- 22. Java与shell脚本
- 23. 这个Shell脚本有什么问题?
- 24. shell脚本过滤器问题
- 25. unix shell脚本语法问题?
- 26. shell脚本问题“if [-d $ {directory}]”
- 27. Unix Shell脚本 - AWK分隔符问题
- 28. chdir在PHP脚本中调用shell脚本的问题
- 29. Linux shell脚本 - 简单的awk脚本问题
- 30. 的Bash shell问题:运行一个简单的shell脚本
你有什么已经有?确切的问题是什么? – 2011-04-29 11:15:21
我只能执行./LicenseGen.sh命令,但我想./LicenseGen.sh下执行一个更命令plz帮助我 – 2011-05-02 06:59:31