emcrisostomo/fswatch
View on GitHub ↗ ★ 5,609 C++
A cross-platform file change monitor with multiple backends: Apple macOS File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify and fanotify, Microsoft Windows and a stat()-based backend.
19 mentions on Hacker News by 14 people: 0 stories, 19 comments · first 2013-03-31 · latest 2024-09-28
20082026
-
…setting up a project, etc etc) I think the answer here is the shell, fswatch, and jq. https://github.com/emcrisostomo/fswatch https://github.com/jqlang/jq http://man.openbsd.org/sh
comment by rollcat · 2024-09-28 · in It is never too late to write your own C/C++ command-line utilities -
Or even better, fswatch ( https://github.com/emcrisostomo/fswatch ) which works on Linux, BSDs, macOS, Windows, and even Solaris
comment by ChickeNES · 2023-12-04 · in MakeMake: Generate make files from C source code -
…but I was interested in your experience, especially with reliability. This one looks interesting: https://github.com/emcrisostomo/fswatch
comment by POPOSYS · 2022-10-19 · in Show HN: Filesystem Watcher -
…command is a front end to libfswatch, so one can use that directly if shelling is to be foregone. https://github.com/emcrisostomo/fswatch
comment by lloeki · 2022-10-05 · in Watchman: Execute a command when something changes -
This one? https://github.com/emcrisostomo/fswatch
comment by brigandish · 2022-10-05 · in Watchman: Execute a command when something changes -
…There are third party tools which present more cross-platform consistency, most notably https://github.com/emcrisostomo/fswatch#readme (also available in common Linux distros, just an apt install away in Debian for instance).
comment by dspillett · 2022-10-05 · in Watchman: Execute a command when something changes -
…I'm sure there's alternatives for BSD Unix and Windows, but I care the least about those OS's. https://github.com/emcrisostomo/fswatch https://linux.die.net/man/1/inotifywatch
comment by bb88 · 2022-04-07 · in GhostSCAD: Marrying OpenSCAD and Golang -
…way too much. If you're interested in this type of system call across operating systems check out https://github.com/emcrisostomo/fswatch On WSL1/2: Namely in WSL1, there were serious issues with package systems like npm, node_modules/…
comment by tony · 2020-11-02 · in Ubuntu Linux Jail on FreeBSD 12.2-Release -
…[3] https://github.com/fsnotify/fsnotify (written in Go — golang) [4] https://github.com/emcrisostomo/fswatch (written in C++) [5] https://github.com/watchexec/watchexec (written in Rust)
comment by guessmyname · 2020-02-28 · in Unix as IDE (2012) -
…and BSD but also non-WSL Windows and Solaris too, and leveraging the Filesystem Event API on macOS. https://github.com/emcrisostomo/fswatch
comment by lloeki · 2018-12-25 · in My one-liner Linux Dropbox client -
Maybe look into the very unix-y fswatch, which is cross platform too. https://github.com/emcrisostomo/fswatch
comment by lloeki · 2018-06-21 · in Using Unix as an IDE (2012) -
If you care for it, fswatch is cross-platform: https://github.com/emcrisostomo/fswatch
comment by lloeki · 2017-09-05 · in Time for Makefiles to Make a Comeback -
I myself quite enjoy using the very nice fswatch[0]. https://github.com/emcrisostomo/fswatch
comment by lloeki · 2017-03-14 · in Entr(1) – Run tests whenever files change -
…Linux inotify, Microsoft Windows and a stat()-based backend. http://emcrisostomo.github.io/fswatch/ https://github.com/emcrisostomo/fswatch
comment by wamatt · 2016-09-23 · in Ripgrep – A new command line search tool -
…in doing these kind of things on other systems than Linux, check out fswatch, it's cross platform: https://github.com/emcrisostomo/fswatch
comment by iamtew · 2016-07-11 · in Show HN: Trigger – run a shell command repeatedly on file changes -
…with a simple shell script which kills and restarts your server. Crude, but gets the job done.. [1] https://github.com/alandipert/fswatch [2] http://linux.die.net/man/1/inotifywatch
comment by minikomi · 2013-12-26 · in Show HN: My nodejs-supervisor like tool, written in Go -
…&& firefox -remote \"openURL(127.0.0.1:3000/whatever, new-tab)\"" Bam. My layout, my content. [0]: https://github.com/alandipert/fswatch.git [1]: replace fswatch with inotifywait on linux [2]: I actually use shell-wrapped AppleScript to…
comment by lloeki · 2013-05-28 · in Find Your Color Scheme -
If you're on mac, you can use fswatch instead: https://github.com/alandipert/fswatch It uses Mac APIs to monitor the file system and executes your command when it changes.
comment by i_s · 2013-03-31 · in Rebuild code automatically with "watch" and a makefile