On Mon, Nov 4, 2013 at 3:45 PM, Matt <[email protected]> wrote: > > On Mon, Nov 4, 2013 at 5:05 AM, Ben Noordhuis <[email protected]> wrote: >> >> There is no (native) way to implement tail(1)-like behavior except by >> polling the file for changes one way or the other (but then again, >> that's how most tail(1) utilities are implemented.) See >> fs.watchFile(), it fs.fstats() the file every |interval| milliseconds >> and notifies you when something changes. > > Or just use fs-ext's fs.seek(fd, 0, 1) to reset the EOF flag and keep > fs.read()ing the fd until EOF every [interval] milliseconds.
That works but your writers will need to be very diligent about using only positional writes. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
