The stupid question is the question not asked | |
PerlMonks |
Re: How to automatically execute a perl file....by bastard (Hermit) |
on Jul 26, 2001 at 06:46 UTC ( [id://99878]=note: print w/replies, xml ) | Need Help?? |
Well the first two answers are not perl based.
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. This may have some problems (a day is not exactly 24 hrs). 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.
In Section
Seekers of Perl Wisdom
|
|