Test::Crontab::Format - Check crontab format validity
use Test::Crontab::Format; crontab_format_ok("etc/crontab.txt"); crontab_format_ok( \ $content );
Test::Crontab::Format checks your crontab format is valid or not.
Checks the validity. You can pass file name or scalar ref.
passing empty (0 byte) file/content always yields failure despite Parse::Crontab treats it as success.
Parse::Crontab
example/crontab_format.t
https://github.com/ryochin/p5-test-crontab-format
Ryo Okamoto <ryo@aquahill.net>
Copyright (c) Ryo Okamoto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Crontab::Format, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Crontab::Format
CPAN shell
perl -MCPAN -e shell install Test::Crontab::Format
For more information on module installation, please visit the detailed CPAN module installation guide.