0

For some reason, I have to execute commands such as ls, ps using native c code in Android.

I tried system() and popen(), but none of them works. I don't know why.

Any help will be appreciated.

David Ferenczy Rogožan
  • 23,966
  • 9
  • 79
  • 68
Shawn
  • 1
  • Possible duplicate of [Android Runtime.getRuntime().exec() to nav through directories](http://stackoverflow.com/questions/4618631/android-runtime-getruntime-exec-to-nav-through-directories) – GreyBeardedGeek Oct 04 '15 at 02:24
  • No, this is a different problem. I need to implement all this in c instead of java. – Shawn Oct 06 '15 at 03:52

0 Answers0