Android ADB Shell no working

This is a discussion on Android ADB Shell no working within the Beginning Developers forums, part of the Android Development category; 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 ...

Results 1 to 2 of 2

Thread: Android ADB Shell no working

  1. #1
    Android Lurker muiz's Avatar
    Join Date
    Apr 2011
    Posts
    2

    Unhappy Android ADB Shell no working

    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!

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Android Lurker muiz's Avatar
    Join Date
    Apr 2011
    Posts
    2
    who can help me ?

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Replies: 0
    Last Post: 02-28-2011, 04:10 PM
  2. Replies: 0
    Last Post: 02-18-2011, 01:57 PM
  3. tty not working
    By les shamel in forum Motorola Droid X
    Replies: 2
    Last Post: 01-29-2011, 05:48 PM
  4. The Android.net app link is not working on right hand side
    By feverhost in forum Introductions & Site Assistance
    Replies: 2
    Last Post: 01-15-2011, 01:51 PM

Search tags for this page

adb run shell script

,
adb shell bash script
,
adb shell doesn't work
,
adb shell doesnt work
,
adb shell no #
,
adb shell not #
,

adb shell not working

,
adb shell run script
,
adb shell script
,
android adb shell bash
,
android shell [: not found
,
no adb shell
,
transformers adb shell
,
why adb shell not working
,
www.andriod shell
Click on a term to search our sites for related topics.
Android Forum