You could run a cron
task which is scheduled "frequently" (whether once a minute or hour depends on what you need). In the task, you could then make those checks, and go ahead and run it when the conditions are met.
If this is a one-time task, your task could (since it runs with your permissions) update the crontab to remove itself.