Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Peeking at busy files Message-ID: <8801221836.AA15253@cory.Berkeley.EDU> Date: 22 Jan 88 18:36:44 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 13 > I have a small `tail' program to which I would like to add the magical >`-f' option. This waits while new lines are added to the file and shows them as >they are being added. Now I know that while I am kermiting something, it has a >zero size in the directory and you get a `file in use' type of error if you try >to look at it. Is there any way to gain read access to a file that is being >written to by another process? Yes, but the other process must have openned the file with modes 1005. Most people open the file with 1006 (to create the file). If you open a file with modes 1005 you can still write to it, and other processes can read from it (or also write to it) simultaniously. -Matt