Front page | perl.beginners |
Postings from April 2002
RE: Better "tail -f"
Thread Previous
|
Thread Next
From:
Nikola Janceski
Date:
April 2, 2002 07:04
Subject:
RE: Better "tail -f"
Message ID:
1449413DA482D311B67000508B5A12F50592DFC2@NYEXCHANGE01
what about?
open(TAIL, "tail -f $filename |") or die "no tail $! $?\n";
while(<TAIL>){
}
close TAIL;
> -----Original Message-----
> From: Bruno Figueira [mailto:brunof@nortelnetworks.com]
> Sent: Tuesday, April 02, 2002 9:53 AM
> To: jbajin@aol.com
> Cc: beginners@perl.org
> Subject: RE: Better "tail -f"
>
>
> Well,
>
> I should not lock it. Actually, my code should be "robust" enough to
> workaround it and "tail -f" a file that is "reseted" sometimes.
>
>
> Cheers,
>
> Bruno
>
> -----Original Message-----
> From: jbajin@aol.com [mailto:jbajin@aol.com]
> Sent: Terça-feira, 2 de Abril de 2002 12:24
> To: Figueira, Bruno [CMPS:003R:EXCH]
> Cc: beginners@perl.org
> Subject: Re: Better "tail -f"
>
>
> How about putting a file lock on it?
>
> That way if someone tries to access it and write to it, it
> will not work.
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
>
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
Thread Previous
|
Thread Next