Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 cooling their heels in the Monastery: (17)
As of 2014-10-21 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (105 votes), past polls