Quote:
Originally Posted by Renate
I know. I did it too. There's is something goofy with your shell.
Code:
#!/system/bin/sh
echo Hi, this works for a change.
Get this working first, with the first line, without "/system" or without the first line. Whatever it takes.
|
Code:
Microsoft Windows [Version 10.0.22621.963]
(c) Microsoft Corporation. Alle Rechte vorbehalten.
d:\_Reader-Smartphone\ADB>adb push alpha.sh /data/local/tmp
alpha.sh: 1 file pushed. 0.0 MB/s (173 bytes in 0.047s)
d:\_Reader-Smartphone\ADB>
d:\_Reader-Smartphone\ADB>adb push x.sh /data/local/tmp
x.sh: 1 file pushed. 0.0 MB/s (53 bytes in 0.016s)
d:\_Reader-Smartphone\ADB>adb shell
BOOX:/ $ chmod 755 /data/local/tmp/x.sh
BOOX:/ $ /data/local/tmp/x.sh
/system/bin/sh: /data/local/tmp/x.sh: No such file or directory
1|BOOX:/ $ cd /data/local/tmp
BOOX:/data/local/tmp $ ls
alpha.sh x.sh
BOOX:/data/local/tmp $ exit
d:\_Reader-Smartphone\ADB>adb push x.sh /data/local/tmp
x.sh: 1 file pushed. 0.0 MB/s (46 bytes in 0.016s)
d:\_Reader-Smartphone\ADB>adb shell
BOOX:/ $ chmod 755 /data/local/tmp/x.sh
BOOX:/ $ /data/local/tmp/x.sh
/system/bin/sh: /data/local/tmp/x.sh: No such file or directory
1|BOOX:/ $ exit
d:\_Reader-Smartphone\ADB>adb push x.sh /data/local/tmp
x.sh: 1 file pushed. 0.0 MB/s (37 bytes in 0.010s)
d:\_Reader-Smartphone\ADB>adb shell
BOOX:/ $ chmod 755 /data/local/tmp/x.sh
BOOX:/ $ /data/local/tmp/x.sh
: inaccessible or not found
: inaccessible or not found
Hi, this works for a change.
BOOX:/ $
x.sh
Code:
.
.
echo Hi, this works for a change.
2 empty lines before echo!