develooper Front page | perl.beginners | Postings from April 2002

Re: Better "tail -f"

Thread Previous | Thread Next
Chas Owens
April 2, 2002 07:03
Re: Better "tail -f"
Message ID:
On Tue, 2002-04-02 at 09:23, 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

Missile Address: 33:48:3.521N  84:23:34.786W

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About