• 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: A File has Changed or the Source of Tail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A File has Changed or the Source of Tail


  • Subject: Re: A File has Changed or the Source of Tail
  • From: OS X AIBO <email@hidden>
  • Date: Fri, 4 Oct 2002 08:08:13 -0700 (PDT)

> Well, tail -f does it, so there really must be a way to do it.

I missed the beginning of this thread, so this response may not make
sense....

Spy.app, a Rhapsody-era replacement for Console.app (which is the UI
version of "tail -f"), is implemented by opening a file (& descriptor)
of the file to be spied, and then creates an NSTimer event which fires
every 10th of a second. On that event, it will try and read from the
file using either fread() or fgets(), the former being preferred for
files with high volume.
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >A File has Changed or the Source of Tail (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Insert text at end of Textview
  • Next by Date: NSHighlightRect is dead ?
  • Previous by thread: Re: A File has Changed or the Source of Tail
  • Next by thread: notification on windowing being frontmost.
  • Index(es):
    • Date
    • Thread