B
B
BogNoNeVoVsem2020-09-11 22:20:28
Python
BogNoNeVoVsem, 2020-09-11 22:20:28

How to make it so that when you open a .py file and run a program in it, it cannot be closed?

How to make it so that when you open a .py file and run a program in it, it cannot be closed (the program runs indefinitely until you shut down the computer or end the task through the task manager)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Lyskov, 2020-09-11
@BogNoNeVoVsem

It needs to be daemonized, read about supervisord or systemd

V
Viktor T2, 2020-09-12
@Viktor_T2

Endless cycle:

while True:
    print('helow world')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question