[android-kernel] Re: Can we use system() in android environment?

2009-08-07 Thread karthik poduval
Hi, For commands like ls, pwd and all Android uses busybox so one might not find the excutables in the bin folder. Please try system("ls -l").{without the path} Regards, Karthik Poduval On Thu, Aug 6, 2009 at 7:13 PM, 永振 田 wrote: > > Thans! > I have tried /system/bin/ls ,it seems no work! > A

[android-kernel] Re: Can we use system() in android environment?

2009-08-06 Thread 永振 田
Thans! I have tried /system/bin/ls ,it seems no work! And I review the $(ANDROID_DIR)/bioinc/libc/include/stdlib.h,I find the function system() is in the file. I have no idea how to do? On 8月6日, 下午5时45分, Thomas Roth <0x2a.wri...@gmail.com> wrote: > The return Value of 32512/256 is 127, so it seem

[android-kernel] Re: Can we use system() in android environment?

2009-08-06 Thread Thomas Roth
The return Value of 32512/256 is 127, so it seem like the command you were trying to execute was not found or not properly executed. I don't know if you have to execute /bin/ls oder /system/bin/ls, maybe this is your problem. Regards, Thomas Roth On Thu, Aug 6, 2009 at 10:22 AM, 永振 田 wrote: > >