what about? open(TAIL, "tail -f $filename |") or die "no tail $! $?\n"; while(<TAIL>){ } close TAIL;
> -----Original Message----- > From: Bruno Figueira [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 02, 2002 9:53 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Terça-feira, 2 de Abril de 2002 12:24 > To: Figueira, Bruno [CMPS:003R:EXCH] > Cc: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- 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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]