is there any way to start the command 'arp'.
My tries:
Runtime rt = Runtime.getRuntime();
proc = rt
.exec("arp")
-> got anIOException
.exec("/proc/net/arp")
-> got anIOException
as well (found out over the adb shell, that a/proc/net/arp
exists)
Also tried a shell solution:
String sPrefix="/system/bin/sh -c 'proc/net/arp;";
String sPostfix="'";
Runtime rt = Runtime.getRuntime();
proc = rt.exec(sPrefix+sPostfix); // sh -c 'cd someplace; echo do something'
InputStreamReader reader = new InputStreamReader(proc.getInputStream());
BufferedReader buffer = new BufferedReader(reader);
String line = "";
while ((line = buffer.readLine()) != null) {
echo.append(line + "\n");
}
but got no return value.
Have anyone an idea :-/?