you can't use system() to call a shell script, you need to invoke the shell
interpreter instead, with something like "/system/xbin/sh
/system/xbin/test.sh"

On Wed, Feb 11, 2009 at 1:54 PM, Corey <uvic2...@gmail.com> wrote:

>
> Currently I am trying to write an application in Android GUI.
> One of the function will need to call one of the shell script in /
> system/xbin/.
> I write an API in C by using system("/system/xbin/test.sh"); funtion,
> and then my Java code will use this c API code to execute this shell
> script.
> However, it seems nothing happens.
> Can I call a shell script from JNI?
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to