View Single Post
Old 12-18-2022, 01:24 PM   #79
ottischwenk
Wizard
ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.ottischwenk ought to be getting tired of karma fortunes by now.
 
ottischwenk's Avatar
 
Posts: 2,910
Karma: 3933245
Join Date: Sep 2012
Location: Salzburg AT
Device: Bigme 3/3, Boox 4/14, Like-/Meebook 2/8, Tolino 1/10, Ki/Ko 0/8
Quote:
Originally Posted by Renate View Post
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!
ottischwenk is offline   Reply With Quote