E
E
ezbooz2021-01-11 05:01:05
Python
ezbooz, 2021-01-11 05:01:05

Android-Termux, how to make a script run every n times?

Android-Termux, how to make a .py script run every n times? Or the current script was closed and a new one was opened

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SashaN69, 2021-01-11
@ezbooz

import time,os
while 1:
    time.sleep(1800)
    os.system("start python testfile.py")

L
Lesha, 2021-01-11
@hydrugz

Cron

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question