Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Watch log for string (tail -f)

by roboticus (Chancellor)
on Oct 11, 2012 at 20:25 UTC ( #998534=note: print w/ replies, xml ) Need Help??

in reply to Watch log for string (tail -f)


"Not working" isn't particularly helpful. What is it doing? Any error messages, etc.?

Anyway, here's how I process the a log file with tail -f:

#!/usr/bin/perl use strict; use warnings; open my $FH, 'tail -f t |' or die; while (<$FH>) { chomp; # processing goes here.... }


When your only tool is a hammer, all problems look like your thumb.

Comment on Re: Watch log for string (tail -f)
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2015-11-26 11:30 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls