Why ADB Shell no working ?

by Muiz » Fri, 22 Apr 2011 03:40:18 GMT

Sponsored Links
 Dear all,

I want to run a simple shell in ADB, but it doesn't work, can you help me?

[muiz@hp platform-tools]$ *cat c.sh*
if [ -n "$X" ]; then
echo "hi"
[muiz@hp platform-tools]$ *adb shell /data/local/c.sh*
1 KB/s (48 bytes in 0.045s)
[muiz@muiz platform-tools]$ *adb shell /data/local/c.sh*
*[: not found*
[muiz@muiz platform-tools]$

Any suggestions ?

*Note: *
1. If I upload the bash file to android, then run this script use command *adb
shell /data/local/bash /data/local/c.sh* works fine, but I don't want to do
2. Same problem with *while* key

Thanks in advanced!



Re: Why ADB Shell no working ?

by Marcin Orlowski » Fri, 22 Apr 2011 03:58:59 GMT

 execution bit set on script? Does not look so.

PS: do not abuse colors.

Marcin Orlowski

*Tray Agenda < http://bit.ly/trayagenda> ;* - keep you daily schedule handy...
*Date In Tray* < http://bit.ly/dateintraypro> ; - current date at glance...
WebnetMobile on *Facebook < http://webnetmobile.com/fb/> ;* and
*Twitter< http://webnetmobile.com/twitter/> ;


Sponsored Links

Other Threads

1. Webview Broken in 1.5 SDK?

Can anyone confirm the fact that webview is broken in the 1.5 sdk?
Either that, or update the code page on the google developer side as
neither that code nor any other (including my previously working
webview code) is showing anything but a blank black screen.


2. Star-styling a checkbox in the res/values/styles file

Hello there,
In my xml layout, I have set the star style on a CheckBox.

It looks great.  Now I want to setup a custom style for my CheckBox to use
the star style as well as other settings (text size, padding) across
activity layouts.  How do I get the star attribute into my custom style
declaration?  Is it a parent attribute?
Thanks and regards,

Jack Benny <http://www.brainyquote.com/quotes/authors/j/jack_benny.html>  -
"I don't deserve this award, but I have arthritis and I don't deserve that


3. windows 7 and g1 phone using wmp 12

4. Can't install usb driver because Windows do not pop "New hardware wizard"

5. Getting Blank while adding Table rows dynamically

6. Widget not working properly when changing orientation

7. About Airplane Mode