Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 examining the Monastery: (6)
As of 2014-07-14 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (255 votes), past polls