Comments (3)
Hey,
I can't see anything wrong.
It's probably caused by fs.watch
implementation, the nodejs core function used by tail
, that doesn't have 100% compatibility across different OSes:
https://nodejs.org/dist/latest-v14.x/docs/api/fs.html#fs_caveats
On Windows, you could try to use WatchFile
instead of watch
, by useWatchFile as a constructor parameter:
https://github.com/lucagrulla/node-tail#constructor-parameters
I hope it helps.
from node-tail.
thanks for fast response
my program will mostly be running on linux, so its fine
I'll try switching to watchFile() for windows use, although it would be good if you perfected the method from your end since I'm not really experienced in the thing
from node-tail.
Do you think we need to mention fs.watchFile is actually polling the file and has a default interval of 5007ms? Cost me another 20min to figure this out lol.
from node-tail.
Related Issues (20)
- Assess flushAtEOF flag
- From beginning option does not work in release 2.1.0 HOT 1
- Event occurs after unwatching file HOT 2
- Error README example exception £Configuration HOT 1
- Tail crashes is file is deleted HOT 1
- rename logic is incorrect on Linux HOT 1
- add JSDoc and native TS support
- "Cannot use 'in' operator to search for 'follow'"
- if nLines > count of separators, no lines are displayed
- nLines not working HOT 4
- Uncatchable error HOT 3
- Unit tests failing HOT 1
- Regex HOT 1
- Support RxJS with TypeScript check HOT 2
- delete data after read? HOT 1
- Carriage Return (\r) is messing up Mac (not tail's fault) HOT 2
- Crashes when using `nLines` with large files HOT 1
- infinite loop when tailing empty files HOT 1
- Possible regression at 2.2.0?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-tail.