in reply to Schedule::Cron job starts, but never stops
The desired effect, as in the cron definition in the code below, is to have it launch the subroutine once and only once every minute....
$cron->add_entry("0-59 * * * * *", {'subroutine' => \&GetStats, } );
The CPAN documentation for Schedule::Cron says that the first argument is minutes and that seconds is only an optional, sixth argument. If I understand this correctly, shouldn't it be:
$cron->add_entry( "1 * * * *", {'subroutine' => \&GetStats} );
Also, does this pass use strict; use warnings;?
|
---|