RE: Emulate "tail -f" on file
- From: KoekemTN@xxxxxxxxxxxx (Tielman Koekemoer \)
- Date: Fri, 20 May 2005 10:59:45 +0200
Thanks all for your input. The File::Tail package works although it
seems to stop working once I restart the application writing to the
logfile. I've played around with the settings but I'll have to take it
up with the author.
Thanks again!
-----Original Message-----
From: Chris Knipe [mailto:savage@xxxxxxxxxxxxx]
Sent: 19 May 2005 09:48 AM
To: Ramprasad A Padmanabhan
Cc: beginners@xxxxxxxx
Subject: Re: Emulate "tail -f" on file
On Thu, May 19, 2005 at 11:54:35AM +0530, Ramprasad A Padmanabhan
wrote:
> use File::Tail;
>
>
> On Thu, 2005-05-19 at 11:37, Tielman Koekemoer (TNE) wrote:
> > Hi All,
> >
> > If I wanted to monitor a file in a way that would emulate "tail
-f"
> > (in the shell), how would I open the file?
> >
> > open(FILE, " filename |"); (?)
> >
> > TIA
As someone who asked the -EXACT- same question, not even a month ago,
I can really suggest the archives, and I can also really second
File::Tail - it's a BRILLIANT module.
--
Chris.
--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx For additional
commands, e-mail: beginners-help@xxxxxxxx <http://learn.perl.org/>
<http://learn.perl.org/first-response>
.
- Follow-Ups:
- Re: Emulate "tail -f" on file
- From: Wiggins d'Anconia
- Re: Emulate "tail -f" on file
- Prev by Date: on warning die
- Next by Date: RE: on warning die
- Previous by thread: Re: Emulate "tail -f" on file
- Next by thread: Re: Emulate "tail -f" on file
- Index(es):
Relevant Pages
|