I usually run a script that should be run from time to time (such as request status updater, for example) using Linux CRON. (I have no idea how to do this in Windows hosting)
However, I noticed that Wordpress seems to do this without using CRON, because it automatically updates itself when the owner of your installation has access to it. But I did not find in his code how he does it.
Detail, this update works regardless of the OS used (even on windows).
How, then, to create a listener that runs automatically?
Application: App auto updater, order status updater, file backup creator, and more.