2016-09-03 8:44 GMT+02:00 Fundor333 <fundor...@gmail.com>:
> Soluzione di Lorenzo: l'applicativo è un deamon/service che lavora in
> background

Ma se implementi un demone arriverai comunque a fare uno sleep() o più da
qualche parte nel codice.

Perché non usare uno degli scheduler già esistenti allora?

Cercando "python scheduler" su web, oltre a sched della stdlib vengono fuori
"scheduler" e "Advanced Python Scheduler", il secondo in particolare mi sembra
proprio quello che cerchi:

    Among other things, APScheduler can be used as a cross-platform,
    application specific replacement to platform specific schedulers, such as
    the cron daemon or the Windows task scheduler. Please note, however, that
    APScheduler is not a daemon or service itself, nor does it come with any
    command line tools. It is primarily meant to be run inside existing
    applications.


[1]: https://github.com/dbader/schedule
[2]: https://apscheduler.readthedocs.io/en/latest/

-- 
Andrea
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a