Front page | perl.beginners |
Postings from April 2002
RE: Better "tail -f"
Thread Previous
|
Thread Next
From:
Bruno Figueira
Date:
April 2, 2002 10:50
Subject:
RE: Better "tail -f"
Message ID:
31E38B53D182D51195FA00508BE3A334A60BD3@zwnbc004.cala.nortel.com
Thank you drieux.
The suggestion from your link handles it (I've made minor modifications)!
You're right. Checking sizes is a good idea.
Ciao,
BrunoF
-----Original Message-----
From: drieux [mailto:drieux@wetware.com]
Sent: Terça-feira, 2 de Abril de 2002 13:11
To: beginners@perl.org
Subject: Re: Better "tail -f"
On Tuesday, April 2, 2002, at 04:30 , Bruno Figueira wrote:
> However, if another program removes (all) lines from the file referenced
> by
> FH, perl looses the trailing (for a undetermined time). How do I improve
> this code to understand the file was changed?
I misread your problem - then ran into it...
used the p2 code from yesterday in p2>filename
and it made:
http://www.wetware.com/drieux/CS/lang/Perl/Beginners/file_change_while_taili
ng.txt
act stoopid - till I put the spare subroutine into reset
to begining....
ciao
drieux
Thread Previous
|
Thread Next