Comments (14)
Hi, #!/bin/bash
isn't a valid shebang in termux (nothing exists at that location) so you need to change it to /data/data/com.termux/files/usr/bin/bash
.
Also make sure it is executable: chmod u+x path/to/your/script
from termux-boot.
cheers for response so is that what proper script look like
/data/data/com.termux/files/usr/bin/bash
chmod u+x python /sdcard/sstvProxy/sstvProxy.py -hl
from termux-boot.
Well, almost.
Try
#!/data/data/com.termux/files/usr/bin/bash
python /sdcard/sstvProxy/sstvProxy.py -hl
And you might need to run chmod u+x ˜/.termux/boot/your_script_name
to make it executable.
from termux-boot.
does the chmod bit just get added after the 1st 2 lines?
from termux-boot.
Try without the chmod part first.
You can learn more about what it does here: https://askubuntu.com/questions/443789/what-does-chmod-x-filename-do-and-how-do-i-use-it
from termux-boot.
ok so its not starting on boot but the script is correct as when i manually input below into termux it runs my sstvProxy.py program so, is how can i actually get it to execute? im confused as when i type logcas - s termux:* it says that my sstvProxy.sh file is running
#!/data/data/com.termux/files/usr/bin/bash
python /sdcard/sstvProxy/sstvProxy.py -hl
from termux-boot.
If the logcat says that it is running then I would assume that it is running but that something is wrong in the sstvProxy.py script
from termux-boot.
cheers can you point me to what it might be, the command to run the actual py file is just simply
python /sdcard/sstvProxy/sstvProxy.py - hl
so what should the script look like to run this in termux/boot
from termux-boot.
ok mate it is something to do with termux or termux boot although it is saying in logcat that it is running i dont think it is, as when i simple type
~/.termux/boot/sstvProxy.sh
the program starts, so the script must be correct, is there something preventing it from opening
from termux-boot.
when i simple type ~/.termux/boot/sstvProxy.sh the program starts
What does "the program starts" mean? How are you verifying this?
What does the script actually do?
I would try to replace the script with something else that is easy to verify, like
#!/data/data/com.termux/files/usr/bin/bash
echo `dateˋ >> ˜/boot.log
If that works then you know it is executed, if it doesn't work then the problem is with termux-boot
from termux-boot.
hi the script is supposed to input a python command at startup that i would normally have to input manually.
It is a program that runs a proxy iptv m3u8 url so i can access on other devices
I know the script seems to work as when i just input manually the folder it is located in, then the proxy program starts and data is sent to my devices
i am in work so i will try the other script when i get home
from termux-boot.
any idea mate?
from termux-boot.
How did the date
script go?
from termux-boot.
@paulsavo1 I'm still waiting for a report on how the date script went, did that work?
From your comment in termux/termux-tasker#18 it sounds a bit like you've solved this issue, is that the case? Sharing the solution would then help others and you could close this issue to indicate that it is solved.
from termux-boot.
Related Issues (20)
- Various issues HOT 4
- Universal Installed then opened and crashed. Arm64 would not install HOT 4
- Termux cannot find link to open ssh HOT 1
- use it to enhance termux-service HOT 2
- GH build expired HOT 1
- Termux:TermuxService: Failed to execute new TermuxTask command HOT 7
- Termux:boot not working on android 13 HOT 3
- Termux boot 0.7 not starting: workaround using Tasker HOT 1
- Security warning from Google HOT 2
- ~/.termux/boot/ 中的文件没有被运行 HOT 2
- virus in termux:boot? HOT 2
- Termux:Boot fails on MIUI 12 Android 10 HOT 1
- Boot strap error HOT 1
- Won't install app termux HOT 1
- Need built in graphical vision HOT 2
- How to attach a debug report to termux
- Niosis
- won't install on Android 14 on Pixel 7a HOT 1
- python: can't open file '/data/data/com.termux/files/home/mask.py': [Errno 2] No such file or directory
- infinix zero x pro
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-boot.