A simple sh script, but run failure with error: [ not found.
#!/system/bin/shThe same script can run well on Linux.
if [ $? eq 0 ]; then
echo "Command run successful"
fi
I dont know why, but I finally got a solution.
Upload a busybox, change it to executable permissions, create a soft link "[" to busybox. Like the following:
-rwxr-xr-x 500 500 1877260 2011-09-22 02:42 busyboxRun the sh script again, which shall give no error any more.
lrwxrwxrwx root root 2011-09-26 08:15 [ -> /sbin/busybox
Finally, make sure the searching path $PATH can find command "busybox", and "[".
17 comments:
Thanks for the information. I’m really glad that you share your ideas about this. I must relay these ideas to my friends.
doctor reviews by patients
find doctor list
Nice post. We are impressed by your clear description of your topic. Thanks for the information. Keep on writing.
find doctor list
I am first time to your site and after searching some pages I have decided to visit you regularly, as I have liked you site too much.
Amoxicillin Dosage
Awesome details, I really appreciate the way you provided.Thanks for giving.I am happy to have study some of them on your site. Best Website Hosting
Thanks for sharing such an interesting information. I think this is really a very nice post. Thanks for the great content!
----------------
iphone blackjack
Thanks for sharing such useful information. It seems that you did a lot of hard work for this article. Keep it up.
--------------------------
Everest Poker Review
Very informative and impressive article. unique information.
-----------
ipad casino
Nice post love your blog.This blog is awesome full of use full information that i was in dire need of. Thanks for this post. Keep it up.
-----------------
ipad poker
Thanks for sharing such an interesting information. I think this is really a very nice post. Thanks for the great content!
-------------
android bingo
Thanks for sharing such useful information. It seems that you did a lot of hard work for this article. Keep it up.
-------------
android slots
Hello there! I searched your blog using msn. This is a really well written article. I will make sure to bookmark it and return to read more of your useful info. Thanks for the post. I’ll definitely return. Symbian App Development
Nice information, many thanks to the author. It is incomprehensible to me now, but in general,
The usefulness and significance is overwhelming.
Thanks again and good luck!
------------
android roulette
It’s a Good blog and congrats on having good Information, Keep it up! Thanks for sharing your knowledge with us!
----------------
Leadership Development
Contents good. Thank you. I want you to be successful
teambuilding middle east
I agree totally.
free casino comps
Thanks for sharing with us this tip . I’ll use this anti spyware to see if it’s good . I always had problems with spywares , that is already a part of this internet ….
poker community
I like your blog analyze.This is one of the well defined post.I will again look forward towards this post.Keep it up.
Android app developer
Post a Comment