in reply to Scheduling with Perl?
I not sure what platform you are on and whether you are looking for a platform independent solution.
I guess for your approach, having an alarm signal for every two hours might make more sense. But I have never tried using alarm for more than 5 minutes and am not even sure if it is supported on Win32.
BTW, this functionality is pretty straightforward to do with crontab in one line. eg: 30 1-23/2 * * * runs it every two hours, 30 min past the hour (at least it does on Linux)
For information about NT At see Schedule Win32 Perl Scripts with AT. I know that you can schedule things like that from GUI, never tried it with the API. For Windows there is also Win32::Scheduler available from http://www.roth.net/perl/packages/.
You should also look through the offerings on CPAN, eg: Schedule::Cron does exactly what you are trying to do.
Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd
|
|---|