kevent sample code?

2006-10-30 Thread stuartv
Can anyone point me at some sample code for kevent.  I am trying to
write a program that will watch a file for a write and can then 
read the new lines and act upon them.  So far, I get the first event
but not subsequent events.

Stuart van Zee
[EMAIL PROTECTED]



Re: kevent sample code?

2006-10-30 Thread Jon Simola

On 10/30/06, stuartv [EMAIL PROTECTED] wrote:

Can anyone point me at some sample code for kevent.  I am trying to
write a program that will watch a file for a write and can then
read the new lines and act upon them.  So far, I get the first event
but not subsequent events.


tail(1) uses kevent for following a file, I can't imagine any simpler examples.

--
Jon