Dear all,
I would like to use ADB shell to test the android system, but it doesn't
look like bash shell on linux.
Is there any documents for this issue? Or what can I do then?
The below scripts was my test steps:
[muiz@hp platform-tools]$ *cat c.sh*
x="$1"
if [ "$x" == "a" ]; then
echo "A"
else
echo "Others"
fi
[muiz@hp platform-tools]$ ./*c.sh a*
*A*
[muiz@hp platform-tools]$ ./*c.sh aa*
Others
[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*
***Others
*[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, *then it works fine, but I don't
want to use this method.
2. Same problem with *while* statement and others.
3. I posted a thread at
http://www.android.net/forum/beginning-developers/60461-android-adb-shell-no-working.html
Thanks in advanced!
--
Regards,
*Muiz*
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en