【发布时间】:2012-10-20 17:33:28
【问题描述】:
我想通过我的应用程序运行 traceroute 命令。
我该怎么做?
Runtime.getRuntime().exec("traceroute google.com")
不工作。
java.io.IOException:运行 exec() 时出错。命令:[traceroute, -4, google.com] 工作目录:null 环境:null 11-02 12:51:38.399: E/trace(1604): at java.lang.ProcessManager.exec(ProcessManager.java:224)
还有其他方法,例如使用 NDK 还是其他方式。
请帮帮我。
【问题讨论】:
标签: android shell android-ndk command traceroute