Answer the question
In order to leave comments, you need to log in
How to execute code on process termination with script?
I need to execute code when the computer is turned off.
Tried atexit.register
, but it only works with ctrl + c. On emergency termination (by clicking on the cross or in the task manager), the code is not executed
Answer the question
In order to leave comments, you need to log in
At emergency termination (by clicking on the cross or in the task manager), the code is not executed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question