Re: Reading a file as it fills up by another program
Re: Reading a file as it fills up by another program
- Subject: Re: Reading a file as it fills up by another program
- From: Walter Ian Kaye <email@hidden>
- Date: Sun, 14 Dec 2003 13:26:33 -0800
At 12:13p -0800 12/14/2003, Christopher Nebel didst inscribe upon an
electronic papyrus:
On Dec 13, 2003, at 6:32 AM, Harald E Brandt wrote:
Now to a solution that I have found out myself: The solution is a
bit brute force - not very elegant, but it actually works! ... The
technique is to repeatedly in a loop open and close a file, thereby
forcing it to really write to the file. Like this:
Since you're using perl, a better solution would be to alter the
buffering of the output stream, such as by using $|.
I was gonna mention that one, and forgot. Brain must be pipin' to /dev/null.
Most of all, of course, one would like to read the buffer instead,
not involving any disk activity at all! But is that really possible?
If it is, then the OS will do it for you -- this is what Unified
Buffer Caches are all about.
Wasn't there a TV show... Buffer the Damn Piper Slayer?
-boo :)=
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.