p2p-adb icon indicating copy to clipboard operation
p2p-adb copied to clipboard

Can't open sh?

Open jonnyh1994 opened this issue 12 years ago • 9 comments

Hey, I've jsut downloaded this on my samsung GT-i9100 running Rootbox v3.4 and Dorimanx kernal. I've copied the folder after extracting to the root of my phone and ran the comman in terminal but I keep getting an error. This is what it looks like:

app_71@android:/ $ su root@android@/ # sh ./run.sh sh: can't open './run.sh' 2|root@android:/ #

Anyone help please? :( I'm running latest version of busybox and using terminal emulator

jonnyh1994 avatar Feb 13 '13 19:02 jonnyh1994

You're trying to execute the file directly from the root of the phone. In mine, I have to go to /sdcard/p2p-adb-master/run.sh. I don't know how your phone is structured, but remember: cd for moving into folders (cd .. for going up) ls to list the items in the actual folder

Astu04 avatar Feb 14 '13 15:02 Astu04

i got the same issue as jonnyh1994 and your method ^^ did not work for me. it says permission denied

Unknownthespy avatar Jul 30 '13 17:07 Unknownthespy

Where have you saved run.sh? Can you provide me the log as jonnyh did and tell me where you stored the run.sh?

Astu04 avatar Jul 30 '13 18:07 Astu04

i put the p2p-adb file in the android data folder and tried to run it like that. am i missing a step to this?

Unknownthespy avatar Jul 30 '13 18:07 Unknownthespy

u0_a59@android: / $ su u0_a59@android: / # sh ./run.sh sh: ./run.sh: No such file or directory 127 |u0_a59@android: / # so this is what i did. i took the zip file, u unzipped it on my computer and put it in the data folder in the android folder. i then go to terminal and that is what it says. im sorry i wasnt clear earlier.

Unknownthespy avatar Jul 31 '13 04:07 Unknownthespy

You are doing as jonnyh, you both are trying to open it from the root of the filesystem of your mobile. First, you have to navigate to where it's located.

cd /sdcard/android/data

Or whatever your folder is. Use "cd" and "ls" for navigation.

Astu04 avatar Jul 31 '13 12:07 Astu04

To explain, is like you're trying to execute the file in C:\run.sh but the file it's located in C:\Users<Username>\Downloads\run.sh First you need to write "cd C:\Users<Username>\Downloads" and then "sh ./run.sh"

Astu04 avatar Jul 31 '13 13:07 Astu04

u0_a59@android: / $ su u0_a59@android: / # /storage/sdcard0/p2p-adb-master/run.sh sh: /storage/sdcard0/p2p-adb-master/run.sh: can't execute: Permission denied

126 |u0_a59@android: /

so i found where the file was and i tried to execute it from where it is but it says permission denied.

Unknownthespy avatar Jul 31 '13 17:07 Unknownthespy

@Unknownthespy: http://en.wikipedia.org/wiki/Chmod#Command_syntax

denzuko avatar Mar 18 '15 14:03 denzuko