watchexec
Run arbitrary commands when files change. See also:
entr. More information: https://manned.org/watchexec.
- Call
ls -lawhen any file in the current directory changes:
watchexec
- Run
makewhen any JavaScript, CSS, and HTML file in the current directory changes:
watchexec make
- Run
makewhen any file in theliborsrcdirectory changes:
watchexec
- Call/restart
my_serverwhen any file in the current directory changes, sendingSIGKILLto stop the child process:
watchexec --stop-signal
- Restart the execution of a command when any Java source file in the current directory changes, sending
SIGKILLand only checking for updates every10000ms:
watchexec --stop-signal --poll 10000
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
