Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: using perl to format tail -f

by perlfan (Curate)
on Apr 14, 2008 at 16:41 UTC ( #680334=note: print w/ replies, xml ) Need Help??


in reply to Re: using perl to format tail -f
in thread using perl to format tail -f

Or to a script:

#!/usr/bin/env perl use warnings; use strict; while(<>) { #... do something with the latest line, $_ }
Usage:
tail -f /var/log/apache2/access.log | myscript.pl


Comment on Re^2: using perl to format tail -f
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-12-28 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls