Has anyone used DateTime::Event::Cron?
It looks useful but I got hung up immediately on some basics.
This code should, I think, show me each crontab entry, then
show me just the command:
use strict;
use DateTime::Event::Cron;
my @entries = DateTime::Event::Cron->new_from_crontab
(file => '/tmp/crontab.out');
my $entry;
foreach $entry (@entries)
{
print $entry->original(), "\n";
print " ", $entry->command(), "\n";
}
The full entry prints fine, but the commands are all missing
the leading token of the command (the program name) -- only
the command arguments are shown. I believe all of the
commands are full paths and therefore contain forward
slashes. Some of the docs. point to an expanded cron syntax
that supports slashes, so I'm wondering if maybe that has
something to do with it.
At any rate, I'd be interested to hear other monks'
experience with this module.