Please use the android-ndk Google Group for Android NDK questions. On Tue, Mar 27, 2012 at 12:12 PM, A B <[email protected]> wrote: > Hi All > > I want to run script file on android Shell using Native C program. > > I tried using system function but it's not working. > > result = system("sh ./test.sh"); > > > LOGD("result is %d", result); > > system command returns 0 means its executed script file successfully. > > but i cant able to see script file Output. Means system call > executed successfully but script is not started. > > test.sh contains > > echo "test...." > > Android NDK application could not print test.... when this system call runs. > > Even any script can not be started using system call. i checked more than 10 > different scripts. > > test.sh have 777 permissions > > Any help would be appreciated. > > Thanks > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

