Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Search logs with crontab

by taint (Chaplain)
on Nov 18, 2013 at 23:28 UTC ( #1063217=note: print w/ replies, xml ) Need Help??


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;


Comment on Re^3: Search logs with crontab

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-08-30 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls