Problem in opening the file using Tail Module
- From: msivasakthi@xxxxxxxxx (Sivasakthi)
- Date: Wed, 29 Aug 2007 15:11:57 +0530
Hi Guys,
I have used the following code to print the log files. but nothing is
printed even it doesn't show the warning message, no prompt is
returned.
what is the mistake in code , could u help me to find the pbm???
#!/usr/bin/perl
use strict;
use warnings;
use File::Tail;
my $file=File::Tail->new("/some/log/file/path");
while (defined(my $line=$file->read))
{
print "$line";
}
Thanks,
Siva
- Follow-Ups:
- Re: Problem in opening the file using Tail Module
- From: Mumia W.
- Re: Problem in opening the file using Tail Module
- From: Rob Dixon
- Re: Problem in opening the file using Tail Module
- From: Jeff Pang
- Re: Problem in opening the file using Tail Module
- Prev by Date: Re: Barewood found where operator expected?
- Next by Date: Re: Problem in opening the file using Tail Module
- Previous by thread: Regex Issue
- Next by thread: Re: Problem in opening the file using Tail Module
- Index(es):
Relevant Pages
|
|