in reply to How to automatically execute a perl file....
On a unix system you should probably use cron.
On a windows machine something like Norton Scheduler should work.
The basic way to do this in perl is thus:
Let it run in the background. It will sleep for 24 hrs (86400 seconds) then repeat the loop.while (1) { <place code here> sleep(86400); }
Another way to do it is to sleep for a lesser interval and do a check for the time passing then execute whatever code is needed.
I would reccommend looking into a separate scheduling agent though. Thats what they do best.
|
|---|