- This is supposed to be a library written in server side javascript( node ) and Kefir.js whose goal is
to mimic
tail -f
functionality
- Basic functionality implemented (assuming everything works right) i.e follows the file growth whether the file is appended to/overwritten with content
- On file deletion, file existence is polled till return true and then the whole process is restarted again
// touch chicken.txt
>> val("chicken.txt", console.log, 1000)
// echo "beef curry" >> chicken.txt
output>> beef curry
// rm chicken.txt
output>> chicken.txt has been deleted // program doesn't exit polling starts
// echo "beef fried rice" >> chicken.txt
output>> beef fried rice
Check out the example
subdirectory to look at how to log postfix logfile to mongo (make sure you have read permission to the logfile)
- Make sure it works in non-favourable conditions
- Testing
- The output has yet to be worked on in terms of line breaks/other what-nots
- Stress testing to check if it performs as well as it should, not sure if the recursive call is tail recursive sooooooo gotta check that out as well
- It comes from the Malayalam (South Indian language) word for tail
- MIT License