GithubHelp home page GithubHelp logo

Write a script about termux-boot HOT 14 CLOSED

paulsavo1 avatar paulsavo1 commented on August 22, 2024
Write a script

from termux-boot.

Comments (14)

Grimler91 avatar Grimler91 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

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.

Grimler91 avatar Grimler91 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

does the chmod bit just get added after the 1st 2 lines?

from termux-boot.

Grimler91 avatar Grimler91 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

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.

Grimler91 avatar Grimler91 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

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.

Grimler91 avatar Grimler91 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

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.

paulsavo1 avatar paulsavo1 commented on August 22, 2024

any idea mate?

from termux-boot.

Grimler91 avatar Grimler91 commented on August 22, 2024

How did the date script go?

from termux-boot.

Grimler91 avatar Grimler91 commented on August 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.