riddimak has asked for the wisdom of the Perl Monks concerning the following question:
use Schedule::Cron; use Data::Dumper; sub dispatcher { my @details; push(@details,"\nCode \t Name "); open SITE_DETAILS, ">>/home/www/cgi-bin/x/d.xls") or die "Can't open property_details file: $!\n"; print SITE_DETAILS @details; } ##create an empty file crontests.cron my $cron = new Schedule::Cron(\&dispatcher); $cron->load_crontab("/home/www/cgi-bin/x/crontests.cron"); $cron->add_entry("06 01 * * *",\&dispatcher); $cron->run(detach=>1); #$cron->clean_timetable();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problem with Schedule::Cron
by muntfish (Chaplain) on May 27, 2005 at 11:31 UTC |