[android-porting] Re: How to execute Shell script in android

2012-04-21 Thread Alvin Wong
Hi, If you're using it in init, perhaps you can check init.goldfish.rc and system/etc/init.goldfish.sh? It's there in every build and is an example of shell scripts. Perhaps you are missing a shebang? On 4月9日, 上午8時20分, Vikas KM wrote: > Hi All, > > I want to execute a shell script in android >

Re: [android-porting] Re: How to execute Shell script in android

2012-04-20 Thread IssamuX _
check my article ; http://issamux.blogspot.fr/2011/04/android-execute-command-in-shell.html On Fri, Apr 20, 2012 at 7:46 PM, Chris Stratton wrote: > On Friday, April 20, 2012 3:57:16 AM UTC-4, Vikas KM wrote: >> >> Hi, >> >> Works with busybox.. >> > > By itself what you have posted accomplis

[android-porting] Re: How to execute Shell script in android

2012-04-20 Thread Chris Stratton
On Friday, April 20, 2012 3:57:16 AM UTC-4, Vikas KM wrote: > > Hi, > > Works with busybox.. > By itself what you have posted accomplishes nothing, so the fact that it runs is of little importance Any other way of doing this without buybox.. > As I said before, tell us what you are trying to ac

[android-porting] Re: How to execute Shell script in android

2012-04-20 Thread Vikas KM
Hi, Works with busybox.. Any other way of doing this without buybox.. -- Regards Vikas KM http://arowboat.org On Fri, Apr 20, 2012 at 1:59 AM, Ivo Topchev wrote: > Install busybox and it does most of the scripts, Google it and you will > see what are the steps. > Ivo > > > On T

[android-porting] Re: How to execute Shell script in android

2012-04-19 Thread Chris Stratton
On Monday, April 9, 2012 8:20:40 AM UTC-4, Vikas KM wrote: > > I want to execute a shell script in android > > *** SHELL SCRIPT > > if [ ! -d "/sys/devices/platform/ehci-omap.0/usb1/1-2/1-2.4" ]; then > if [ -d "/sys/devices/platform/ehci-omap.0/usb1/1-2" ]; th