App-RunCron
view release on metacpan or search on metacpan
Identifier of the job name. (Optional)
## command
command to be executed. (Required)
## logfile
If logfile is specified, stdout and stderr of the command will be logged to the file so that it could be used for later inspection.
If not specified, the outputs will not be logged.
The logfile can be a `strftime` format. eg. '%Y-%m-%d.log'. (NOTICE: '%' must be escaped in crontab.)
## reporter|error\_reporter|common\_reporter
`common_reporter` is optional, processing after `(error_)?reporter` is handled.
The `reporter`, `error_reporter` and `common_reporter` can be like following.
- `$module_name`
- `[$module_name[, \%opt], ...]`
- `$coderef`
lib/App/RunCron.pm view on Meta::CPAN
Identifier of the job name. (Optional)
=head2 command
command to be executed. (Required)
=head2 logfile
If logfile is specified, stdout and stderr of the command will be logged to the file so that it could be used for later inspection.
If not specified, the outputs will not be logged.
The logfile can be a C<strftime> format. eg. '%Y-%m-%d.log'. (NOTICE: '%' must be escaped in crontab.)
=head2 reporter|error_reporter|common_reporter
C<common_reporter> is optional, processing after C<(error_)?reporter> is handled.
The C<reporter>, C<error_reporter> and C<common_reporter> can be like following.
=over
=item C<< $module_name >>
( run in 0.445 second using v1.01-cache-2.11-cpan-c21f80fb71c )