tarun
tarun

Reputation: 75

How to keep running python script 24/7 on Termux?

I have python script that im running on my android phone But the issue is whenever my phone's screen get off or i minimize the app the script get errupt and it doesnt process or works and i have to restart / run it again. Thanks in advance.

Upvotes: 5

Views: 5456

Answers (1)

Thalish Sajeed
Thalish Sajeed

Reputation: 1351

You need to run the script as a background process.

nohup python scripname.py &

should work.

for more details refer to this link

Upvotes: 0

Related Questions