Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songmu/p5-parse-crontab
https://github.com/songmu/p5-parse-crontab
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/songmu/p5-parse-crontab
- Owner: Songmu
- License: other
- Created: 2013-01-03T17:31:32.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-07T12:48:41.000Z (over 9 years ago)
- Last Synced: 2024-10-11T21:09:29.859Z (27 days ago)
- Language: Perl
- Size: 208 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Parse::Crontab - Perl extension to parse Vixie crontab file
# SYNOPSIS
use Parse::Crontab;
my $crontab = Parse::Crontab->new(file => 'crontab.txt');
unless ($crontab->is_valid) {
warn $crontab->error_messages;
}
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;
}# DESCRIPTION
This software is for parsing and validating Vixie crontab files.
# INTERFACE
## Constructor Options
### `file`
crontab file.
### `verbose`
verbose option (Default: 1).
If errors/warnings exist, errors/warnings message is dumped immediately when parsing.### `has_user_field`
for the crontab format having user field (system-width cron files and all that).
## Functions
### `is_valid()`
Checking crontab is valid or not.
### `entries()`
returns all entries in crontab
### `jobs()`
returns job entries in crontab
# DEPENDENCIES
Perl 5.8.1 or later.
# BUGS
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.# AUTHOR
Masayuki Matsuki
# LICENSE AND COPYRIGHT
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.