这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@benmoran
Copy link
Contributor

I started making a termux-api class for JobScheduler, to provide a battery-friendly cron replacement. Is this useful for others?

It doesn't have a termux-api-package script yet so I call it directly like this:
/data/data/com.termux/files/usr/libexec/termux-api JobScheduler --ei job_id 1 --ei period_ms 900000 --ez charging true -es script $HOME/test.sh

I also haven't enabled persistence, thinking this could be done just as easily with termux-boot.

@fornwall
Copy link
Member

fornwall commented Jan 3, 2019

Nice! Could you have a look at creating a corresponding wrapper script in https://github.com/termux/termux-api-package?

@benmoran
Copy link
Contributor Author

benmoran commented Jan 3, 2019 via email

@fornwall
Copy link
Member

Nice work! This is now available in version 0.37 of the termux-api package, which can be updated to with pkg up.

Note that this requires version 0.29 of the Termux:API app, which should be available on Google Play in a couple of hours and on F-Droid within a day or so.

@schnatterer
Copy link

Thanks everyone! This functionality makes termux so much more versatile. 🍾

@fornwall I don't see a 0.29 tag in this repo, which is probably the reason for not showing up on F-Droid.
Did you forget to push the tag? 😉

@fornwall
Copy link
Member

@fornwall I don't see a 0.29 tag in this repo, which is probably the reason for not showing up on F-Droid.
Did you forget to push the tag? 😉

Yes I did :) - done now!

@schnatterer
Copy link

Probably no Git user who hasn't experienced this before 😃
Now available on F-Droid, thanks!

@sseathome
Copy link

sseathome commented Jan 23, 2020

Plz guide me how can I run a Python script using termux at 1:00 pm daily. I am new to all this. Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants