http://www.perlmonks.org?node_id=1063217


in reply to Re^2: Search logs with crontab
in thread Search logs with crontab

If I understand you correctly. That was my point. Given that cron will alert you every time it fires off your job, with a message indicating the results. It seemed quite pointless to use cron to manage your script (for the most part). I thought it better, since you're already utilizing sendmail to deliver the outcome of your script. Why not fire your Perl script, and let it manage the schedule thru sleep. Maybe via a for loop, or something. You could capture the entire process via print, or simply redirect <, > the output/results to a file, and have sendmail send it to you, via attachement, or some such thing.

Best wishes.

--Chris

#!/usr/bin/perl -Tw
use Perl::Always or die;
my $perl_version = (5.12.5);
print $perl_version;