[Python] How can I determine if a python script is executed from crontab?

Discussão em 'Python' iniciado por Stack, Maio 5, 2025.

  1. Stack

    Stack Membro Participativo

    I would like to know how can I determine if a python script is executed from crontab?

    I don't want a solution that will require adding a parameter because I want to be able to detect this even from an imported module (not the main script).

    Continue reading...

Compartilhe esta Página