Front page | perl.beginners |
Postings from April 2002
Re: Better "tail -f"
Thread Previous
|
Thread Next
From:
Chas Owens
Date:
April 2, 2002 07:03
Subject:
Re: Better "tail -f"
Message ID:
1017759539.17269.72.camel@tert.icallinc.com
On Tue, 2002-04-02 at 09:23, jbajin@aol.com wrote:
> How about putting a file lock on it?
>
> That way if someone tries to access it and write to it, it will not work.
>
One problem with doing this is that POSIX does not require programs to
check to see if a file is locked before reading/writing to it. The
standard way around this is to open the file and then delete it. The
filesystem won't actually delete the file until you close it, but no
other process can see it.
--
Today is Boomtime the 19th day of Discord in the YOLD 3168
Fnord.
Missile Address: 33:48:3.521N 84:23:34.786W
Thread Previous
|
Thread Next