Re: A File has Changed or the Source of Tail
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.