There is a question: On the hosting I run a Python script with an infinite loop

while True: #do somethink 

I go to the address of the script, and the cycle continues to be executed only while the page is open in the browser. Is it possible to make it run continuously?

  • four
    It seems that you are trying to solve some more global problem for which you have chosen a solution in the form of running an infinite loop. tell us about the global problem - it is likely that it has other solutions. - aleksandr barakin
  • I wrote a bot for VK, and I would like it to work independently - Usama
  • 3
    Perhaps the answers to this question will help you. - aleksandr barakin
  • thanks a lot, helped - Usama
  • 2
    write, please, in the form of an answer to your question, which solution helped you. This will help other people with a similar problem to solve it faster. - aleksandr barakin

1 answer 1

most likely - no, you can’t run the script, go to its address, then close it, thereby stopping the cycle.

  • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky