bimleshsharma has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to read log of server which is being updating continuously. I tried below code but i dont see output.Thanks in advance
use File::Tail; my $file = File::Tail->new("/some/log/file"); while (defined(my $line= $file->read)) { print $line; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Read log which is being updated continuisly
by Arunbear (Prior) on Sep 20, 2012 at 11:13 UTC | |
Re: Read log which is being updated continuisly
by nemesdani (Friar) on Sep 20, 2012 at 09:34 UTC | |
by bimleshsharma (Beadle) on Sep 20, 2012 at 10:30 UTC | |
by Anonymous Monk on Sep 20, 2012 at 10:14 UTC |