Parse::Crontab - Perl extention to parse Vixie crontab file
This document describes Parse::Crontab version 0.01.
use Parse::Crontab; my $crontab = Parse::Crontab->new(file => 'crontab.txt'); if ($crontab->is_valid) { warn $crontab->error_message; } for my $job ($crontab->jobs) { say $job->minute; say $job->hour; say $job->day; say $job->month; say $job->day_of_week; say $job->command; }
This software is for parsing and validating Vixie crontab files.
is_valid()
Checking crontab is valid or not.
entries()
returns all entries in crontab
jobs()
returns job entries in crontab
Perl 5.8.1 or later.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
perl
Masayuki Matsuki <y.songmu@gmail.com>
Copyright (c) 2013, Masayuki Matsuki. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Parse::Crontab, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parse::Crontab
CPAN shell
perl -MCPAN -e shell install Parse::Crontab
For more information on module installation, please visit the detailed CPAN module installation guide.