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*
*x="hello"
if [ -n "$X" ]; then
echo "hi"
fi*
[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
this.
2. Same problem with *while* key



Thanks in advanced!

-- 
Regards,
*Muiz*

-- 



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.

Regards,
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. Merry Xmas & Happy New Year 2010

Wishing u a wonderful & joyful CHRISTMAS. & HAPPY NEW YEAR 2010 to all my 
beloved friends who celebrate it...Let's celebrate it with purifying heart & 
mind..

Regards,


bimo wicaksono

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. MediaRecorder - how to continuously record in memory (using a circular buffer)

Dear All,

I'm trying to use the MediaRecorder to have my application
continuously record audio in memory (to a circular buffer of a known
size). Indeed, I'd like to be able to play back the past 10 seconds of
recorded based on a certain event in my program.

Much of the Media API is designed to linearly record audio to a file.

Has anyone an idea on how I could best do this with or without the
default API ?

Thanks,

-- 

3. Kuota Data

4. Created my app - how do i put it onto my g1 phone?

5. Creating SetContentView

6. Subscript

7. Unpublished App receiving comments and ratings