I'am lookling for a way to watch for new files under some directory and watch for file changes, and it should be a real-time solution.
It seems to me, that kqueue is the key to this, but I haven't found a program in ports that could do file monitoring this way.
Also a related question on tail. When tail is invoked like this
- Code: Select all
tail -f some_file