sschober / kqwait Goto Github PK
View Code? Open in Web Editor NEWWaits for events on files and directories on Max OS X
Waits for events on files and directories on Max OS X
*
watch level 1 structure (current: not working)/**/
watch recursive subfolder, level โ (current: not working)$ ./kqwait .
result: -1
kevent: Invalid argument
echo 1 >> t/test.txt.1
results in
$ ./kqwait -d t/test.txt.1
argc 1, optind: 2
num events: 1
res: 1, id: 3, REN WRT DEL
- t/test.txt.1
On linux. Investigate what's happening here.
If you mix files and directories to watch like this:
$ ./kqwait test.txt sample/
And touch test.txt
from another terminal, the tool crashes:
fdopendir: Bad address
May want to mention in the docs that the file actually has to be changed for it to work :)
If you could kindly tag a 1.0.3 release, that would be great, since it helps with creating a Homebrew formula for this. Thanks!
Downloaded the zip file, typed make
This is the output:
fatal: Not a git repository (or any of the parent directories): .git
cc -std=c99 -Wall -g -c -o dirinfo.o dirinfo.c
sed -e "s;%%VERSION%%;"";" version.h.tmpl > version.h
sed: version.h.tmpl: No such file or directory
make: *** [version.h] Error 1
Hi,
it would be nice if kqwait could do something like this
kqwait chapter1.txt chapter2.txt
or
kqwait *.txt
or even greater
kqwait --exec find ./ -iname '*my_pattern*'
What do you think about this?
Is there an easy way to provide an option to have this also fire when a file is written to?
I am envisioning something like
while find . | xargs ./kqwait; do
case *.pm: ...
case *:
done
Maybe implemented in perl.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.