Chethan Sai
@chethansai
I have an infinite loop python code. But the repl restarts and my manually loggedin accounts get loggedout. I want the repl to stay alive for days.
I
I have an infinite loop python code. But thre repl restarts and all my variables get reset.
I have a hacker subscription but it says permanently alve
AzureDev I'm encountering the same problem, but even the TEXT FILES sometimes gets out of sync or wipes.1 year ago
Coder100 You could use a database, repl.it has an official one,
Docs https://pypi.org/project/replit/2 years ago
DynamicSquid If you want your variables to be saved after you close the repl, you have to store them in a text file2 years ago
How to keep my infinite loop python code alive forever on repl. it restarts every one hour(I have hacker subscription)
RYANTADIPARTHI You could do it this way.
#!/usr/bin/python
import time
some python code that I want
to keep on running
Is this the right way to run the python program forever?
And do I even need this time.sleep call?
while True:
time.sleep(5)
or here are a few links:
https://stackoverflow.com/questions/20170251/how-to-run-the-python-program-forever
https://www.codegrepper.com/code-examples/python/infinite+loop+python2 years ago