Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8084931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:56:41+00:00 2026-06-05T17:56:41+00:00

sorry for my English. I write bash-file, that uses variable: shared_var=/system/xbin My script-file: exec=./adb

  • 0

sorry for my English.
I write bash-file, that uses variable: shared_var=/system/xbin

My script-file:

exec="./adb shell chmod 644 $shared_var/$2"
echo $exec
$exec

Let’s run this script:

>bash gapp.sh misc su
./adb shell chmod 644 /system/xbin/su
: No such file or directory n/su

Let’s run string “./adb shell chmod 644 /system/xbin/su” without script:

> ./adb shell chmod 644 /system/xbin/su
(No output, OK)

I have few questions:

  1. Why are script and direct input in terminal have different results?
  2. Why instead of “No such file or directory /system/xbin/su” adb returns “No soch file or directoryn/su” (adb result looks distorted)
  3. What is solution of my problem?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T17:56:43+00:00Added an answer on June 5, 2026 at 5:56 pm

    does it work, if your shell script only has

    echo ./adb shell chmod 644 $shared_var/$2
    ./adb shell chmod 644 $shared_var/$2
    

    ie, not assigning it to another variable, and no quoted strings

    Also, if you are editing the file in Windows, make sure you save the file with Unix linefeeds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

the first sorry for my english I understand well but not write ok? I
Firstly - sorry for my English.. I've inherited a rather big project which uses
Sorry ,my English is poor, I have never speak English after I leave the
Sorry for bad English :( Suppose i can preliminary organize recipes and ingredients data
(sorry for my english :-) I'm loading a custom UITableViewCell: static NSString *CellIdentifier =
(sorry for my english) I need save an image in the application path and
Sorry for bad english and bad title! I have the table post id title
At first sorry my bad English. I want define routing for this url: For
at first sorry my bad English I want load model in my plugin controller
Firstly, sorry for my English (I'm from China). By reading this article( how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.