I can't execute any shell scripts (bash/sh) in the terminal app, but it works using adb shell.
When I try to run a shell script in the app I get the following error: bash: ./testscript: /bin/sh: bad interpreter: Permission denied
When I run the script as root I get the following error: sudo: unable to execute ./testscript: Permission denied
Permissions of the script: (ls -l ./testscript) -rwxrwxr-x 1 phablet phablet 21 Jun 2 14:11 ./testscript
Permissions of /bin/sh and /bin/bash: lrwxrwxrwx 1 root root 4 May 13 13:59 /bin/sh -> dash -rwxr-xr-x 1 root root 666864 May 8 12:26 /bin/bash
When I run the script using adb shell as 'phablet' it works as expected.
My script contains the following two lines: #!/bin/sh echo test
I can't execute any shell scripts (bash/sh) in the terminal app, but it works using adb shell.
When I try to run a shell script in the app I get the following error:
bash: ./testscript: /bin/sh: bad interpreter: Permission denied
When I run the script as root I get the following error:
sudo: unable to execute ./testscript: Permission denied
Permissions of the script: (ls -l ./testscript)
-rwxrwxr-x 1 phablet phablet 21 Jun 2 14:11 ./testscript
Permissions of /bin/sh and /bin/bash:
lrwxrwxrwx 1 root root 4 May 13 13:59 /bin/sh -> dash
-rwxr-xr-x 1 root root 666864 May 8 12:26 /bin/bash
When I run the script using adb shell as 'phablet' it works as expected.
My script contains the following two lines:
#!/bin/sh
echo test