On Jul 4, 4:20 pm, hasanyasin <[email protected]> wrote:
> Did you take a look at the code example I gave? You do not need to use
> watch if your process is running and the file is being written constantly.
> For exact implementation of tail -f completely in Node, please take a look
> at the working code I had given the address for.

IMHO it's best to use watchFile so that you don't perform a lot of
unnecessary polling stat calls (especially synchronous ones).

Using fs.open + fs.watchFile + fs.fstat + fs.read is probably your
best bet.

-- 
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

Reply via email to