+ 1

Can you get python programs to cycle themselves every second or every minute? Or do you always have to press the run

As above

31st May 2018, 7:59 PM
Jackj100
5 Respostas
+ 4
You can write yourself a task/program scheduler and exec() adequate programs on adequate time moments/intervals.
31st May 2018, 8:16 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
you could just wrap your python progam in an infinite loop and sleep the desired amout of waiting time at the end of each loop iteration
31st May 2018, 8:07 PM
Max
Max - avatar
+ 1
on linux you could also use cron and/or anacron
31st May 2018, 8:21 PM
Max
Max - avatar
+ 1
Take a look at the time module: https://docs.python.org/2/library/time.html The time.sleep() function can help.
31st May 2018, 9:00 PM
Pedro Demingos
Pedro Demingos - avatar
0
thanks man, as you can tell im fairly new to this. 👍🏼👍🏼
31st May 2018, 8:08 PM
Jackj100