• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading a file as it fills up by another program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Christopher Stone <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Christopher Nebel <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Another script to analyize, please
  • Next by Date: Re: [Sappho] periquitos [and mail filters]
  • Previous by thread: Re: Reading a file as it fills up by another program
  • Next by thread: Re: Reading a file as it fills up by another program
  • Index(es):
    • Date
    • Thread