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

Re: reading files

by space_monk (Chaplain)
on Oct 31, 2012 at 10:51 UTC ( #1001647=note: print w/replies, xml ) Need Help??

in reply to reading files

From what I'm reading, I really think you should be approaching the problem differently. This might be heresy on here, but rather than writing some fancy PERL, maybe you should be letting your system do the work for you?

What you're describing really sounds as though its something that should be written to the system log and tracked there. Then there are nice friendly tools to rotate your logs and ensure they don't get out of hand :-)

Replies are listed 'Best First'.
Re^2: reading files
by Anonymous Monk on Oct 31, 2012 at 11:00 UTC
    or you can like, TAIL the log instead of CATing it :) tail -n 100

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001647]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-02-21 13:15 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (280 votes). Check out past polls.